Simple question

Kevin Williams kevwil at gmail.com
Fri Mar 3 18:34:12 UTC 2006


Do all memcache clients have the no_rehash option, or is it just the
Perl client? What is the default value for no_rehash?


On 3/3/06, Cahill, Earl <ecahill at corp.untd.com> wrote:
> Based on the keyname, a key/value pair gets hashed out to a particular
> box.  Consequently, any operations (add, set, get, delete, etc) for that
> keyname are pinned to the same box.
>
> If a server goes down, and you are pinned to it, then what depends on
> the value of no_rehash.  If no_rehash is true, then you're dead, as no
> rehashing will take place.  If no_rehash is false, then memcache will
> rehash based on which servers it thinks are up.  You can set no_rehash
> using the set_norehash method.
>
> You can find out about the above and other niceties by running the
> command
>
> perldoc Cache::Memcached
>
> Good luck
> Earl
>
>
> > -----Original Message-----
> > From: memcached-bounces at lists.danga.com [mailto:memcached-
> > bounces at lists.danga.com] On Behalf Of Andrew Velikoredchanin
> > Sent: Friday, March 03, 2006 11:06 AM
> > To: memcached at lists.danga.com
> > Subject: Simple question
> >
> > Hi, all!
> >
> > Sorry, I do not undestend one moment...
> >
> > When I set in perl client more then one memcached server, keys set to
> > one of them, or to all?
> >
> > What happen with client when one of two servers is down?
> >
> > Thanks.
>


--
Cheers,

Kevin

"Picking fights with people smarter than you
is great - you always end up learning something."
- jcooney.net


More information about the memcached mailing list