Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memcache to use disk storage?

Tags:

memcached

Can Memcache be configured to use disk storage instead of RAM ?

I am running Memcache Server on High IO Amazon EC2 instance. The instance has 2TB of SSD storage available. Can I configure Memcache to use the SSD storage to store the cache contents ?

Thanks

like image 370
Santhosh S Avatar asked Oct 01 '12 05:10

Santhosh S


People also ask

Does Memcached store to disk?

While memcache is resilient to server failures, memcache values are not saved to disk, so a service failure can cause values to become unavailable.

Where does memcache store data?

Memcached stores the data in the memory and when the data is needed the application checks for the data in the memcache via its daemon. Memcached has the ability to store SQL queries, that way the next time the query is ran, it can return the result from memory.

How does memcache work internally?

In order to alleviate the load from the database, a cache is used to store the requested data so that when a user requests for some information, the application will first look into the cache and if it is found there, the application won't go to the database for it; rather, it will fetch the data from the cache and ...


3 Answers

Twitter just released their Memcache on SSD, named fatcache

like image 185
Hossein Avatar answered Sep 24 '22 16:09

Hossein


As far as I know this does not work. But there are alternatives as pointed out here: memcached-like key/value cache that uses both RAM and disk

like image 45
Kai Mattern Avatar answered Sep 23 '22 16:09

Kai Mattern


instead of memcache you could use redis witch write on disk and will use your ssd.

like image 22
BlaShadow Avatar answered Sep 22 '22 16:09

BlaShadow