invalidation by namespace Re: Listing all keys on a server: why?
serhat at sakarya.nl
Sat Jul 29 11:29:29 UTC 2006
On 7/29/06, Martin Atkins <mart at degeneration.co.uk> wrote:
> The "best practice" for memcached is not to do remapping on node failure,
> despite that being the plan to start with, because node deaths are often
> brief and so all you really achieve is screwing up the hash so that all of
> the keys need to get recreated, and so you end up storing loads of things
I agree that this is more responsible from a consistency standpoint, but in
practical situations with only 2-5 memcache nodes, a single failure would
increase the load on the backend by a rather large margin.
One compromise may be to lower the expiration times for entries not on their
"home" nodes. That way, stale data should disappear much more quickly and
the load on the backend is nicely mitigated.
Does that sound like a reasonable approach?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the memcached