Hacker News new | ask | show | jobs
by polite_wine 4047 days ago
Sorry for the simple question but if you store it in ram what is the strategy for when the server is turned off?
4 comments

The idea is more that when you process data, if you can fit it all in memory (and you don't need lots of CPU power, etc, etc, etc) then just use one machine and don't worry about "clusterising" it.

If you're expecting growth in the size of your dataset (beyond growth in RAM size availability), then, well, maybe don't just use a single machine. Same goes for a whole bunch of similar "it's too large for a single machine" considerations.

Storing data should probably still be persisted to disk, and backed up.

You turn it back on, and load it back from the hard drive.
There are multiple strategies that are usually handled by the database that you use. For some databases a hard power off will lose the uncommitted data, for more durable ones it waits until the write is confirmed.

Generally though, these posts are geared towards machine learning people that don't really have "live" data as frequently.

This all depends on what the data is used for. You may need to persist the data to disk on write even if all your data is in RAM.