The memcached server doesn't do anything, it's the job of the client to
distribute keys across the servers in a cluster. Having that distribution
deterministic, i.e. that any client can figure out on which server a certain
key is without communicating with the other clients is a good thing. If you
were to alter the distribution runtime based on whatever keys happen to be
stored right now, then all clients would have to communicate this somehow,
and then you can forget about scaling linearly, and then why are you using
memcached in the first place?

If your data distributes badly across your cluster, change your keys or your
hashing algorithm until you're satisfied.


/Henrik

On Fri, Mar 4, 2011 at 12:55, Priya <priya.seh...@gmail.com> 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?
>

Reply via email to