Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to dynamically add more memory to memcached (i.e. without restarting the server)?

Tags:

memcached

Is it possible to dynamically add more memory to memcached (i.e. without restarting the server)?

Say I initially start a memcached server with 512MB RAM. Later, after adding more memory to my VPS, I want to tell memcached that it can now use 1024MB RAM. Since my live app is connected to memcached, I don't want to shut down the memcached server. Rather, I am wondering whether it is possible to dynamically add more RAM for memcached to use without restarting it.

like image 408
deruse Avatar asked Jan 11 '12 07:01

deruse


1 Answers

No, you cannot change the configuration of a running memcached server (at least, not for the amount of memory it uses).

You could add a second memcache server, and have your systems choose between them. Usually though, you'll just take the initial hit to refill the cache. Even with that second instance, it would still have to refill anyway.

like image 121
Alister Bulman Avatar answered Nov 04 '22 07:11

Alister Bulman