On Wednesday, September 21, 2011 10:55:04 AM UTC-7, MohitGupta wrote: > > Hi All, > It seems non of the php client for memcached ( php-memcache , php- > memcached) provides support for "automatic rebalancing". Is it true? > If yes, then as memcached is widely used distributed cache, how does > one take care of this issue? How is the rebalancing done? Is it done > manually every-time a new server is added or removed ? Are there any > external tools for this? > Also, its looks there is an option for this in php-memcached version > 2.0.01b. ( Memcached::OPT_AUTO_EJECT_HOSTS). I tried, but it does not > work.
If you're using consistent hashing and you have ten servers and you add an eleventh, your clients will automatically consider 10% of each of your previous servers to have a new home on the eleventh server. There's nothing enforcing this in the server, however.
