It doesn't. You can work around this a little by specifying a server multiple times in your server list. So a 2G machine gets listed once, while a 12G machine could get listed 6 times.

-Dormando

Mark Maunder wrote:
Is it sensible to have different cache sizes across multiple servers running memcached. I have one machine with 16GB of memory not doing much and I could use 12GB for memcached. My other servers have 2GB available for memcached. Will it include memory size in it's decision on where to store stuff? Or does it simply load share evenly across all machines and if one out of three servers runs out of memory then a third of new data won't be cached?

This faq entry seems to suggest that the hashing algorithm doesn't take into account how much cache is available on each server:

http://www.socialtext.net/memcached/index.cgi?faq#how_does_memcached_work

Thanks,

Mark.


Reply via email to