On Thu, Oct 17, 2013 at 1:08 AM, SivaRam M <[email protected]> wrote:
>
> Apologies for intervening here. I'm using memcahce-php client and there is
> this call called getstats() which returns stats of a server if it is up an
> runnig
> and returns false if there is something really bad happens to server.
> My question is while hashing the key to a particular server . Will our
> consistent hash function consider this failed server .
> I just want to know what backup plans are available if a server is down.
The backup plan should always be for the client to fetch the data from
a persistent store on any cache miss. I may have this backwards, but I
think the clients with consistent hashing will keep the same hash
regardless of the server state and continue to have hash misses for
whatever percentage of servers are down at any time. Ones that don't
have consistent hashing will adjust the ring to the number of working
servers, losing some current data but letting the clients update it in
the new location on the first access. Obviously, the more servers
you use the less the impact of losing one will be.
--
Les Mikesell
[email protected]
--
---
You received this message because you are subscribed to the Google Groups
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.