On 3/4/11 3:55 AM, Priya wrote: > Does memcached load balance, i.e., what if most of the keys hash to a > particular server, does memcached take some actions to load balance > it?
Generally speaking, since responses come from RAM and memcached can pretty easily saturate network interfaces with very low CPU overhead, it's quite rare that the imbalance of a pool/cluster of memcached servers becomes an issue. If you do have this kind of situation, it's best resolved by getting the cache closer to the user. By that, I mean possibly give up a bit of consistency and cache for 1 sec or less in the application and/or get the caching all the way down to the end user (i.e., browser). Hope that helps, Matt
