We're running a website which performs financial modeling and it takes a while for memcache
to build its cache. For instance, after 1 week the number of hits is only at 48%
and the cache used is 2GB
(out of 5GB
allocated). Since we don't want to loose that cache should the server crash or need to be restarted, we would like to save it somewhere.
Q: What are the best options for storing the content of the memcache
cache somewhere permanent (and restoring that content)?
So far we haven't seen memcache reach the point whereby %
of hits doesn't improve. We know we quickly get to 30%
hits with 300MB
of data, which corresponds to caching of shared content. Afterwards, objects become much bigger and are created less frequently. By looking at our munin graphs, I would say we could reach our best %
of hits within 2 to 3 months. I really think we have a case for saving our memcache data.
FYI I'm not adding the graph showing the %
of hits/misses because it evolves so slowly that it's not really readable.