Better server selection client code?
Brad Fitzpatrick
brad at danga.com
Fri Nov 3 22:10:35 UTC 2006
On Fri, 3 Nov 2006, Brad Fitzpatrick wrote:
>
> On Tue, 17 Oct 2006, Andrew Harbick wrote:
>
> > Earlier this summer Leon Brocard posted this message:
> >
> > ----
> > "I've been toying with idea of using consistent hashes with memcached,
> > but I don't really have enough servers for it to be worth it.
> >
> > http://www8.org/w8-papers/2a-webserver/caching/paper2.html
> >
> > Leon"
> > ----
> >
>
> Very cool!
And here's a perl implementation of consistent hashing I just did now, for
inclusion into Cache::Memcached:
http://code.sixapart.com/svn/memcached/trunk/api/perl/dev/cons-hash.pl
Seems to work really well, and will solve a lot of operational problems we
have when changing our memcached farm's layout.
This will be optional in future versions of Cache::Memcached. There will
be some way to opt-in to the consistent hashing behavior, but it'll
probably be the documented/recommended way. But I won't change the
current syntax for the old way.
- Brad
More information about the memcached
mailing list