Good Question. I want know this too. Seems all the clients handle this very 
naively. So at the end, the applications need to take care of everything. 
Then what's the value of memcached???

On Friday, June 22, 2012 2:03:57 PM UTC-7, Martin Martin wrote:
>
> Hi all,
>
> Suppose I have, say, 5 memcached servers and 3 clients.  Let's say all the 
> processes are fine, but for whatever reason, a connection between one 
> client and one server is lost, e.g. there's a timeout and the socket closes.
>
> Now what?  The one client now only see 4 servers, but the other 2 clients 
> see 3 servers.  Whether you're using hash mod number of machines or 
> consistent hashing, different clients will look on different machines for 
> the same key.
>
> This must be common enough that there's a standard solution, no?  Do 
> clients typically try to reconnect to servers periodically?  Do you just 
> live with the duplicates?  Or does everyone tend to have just a single 
> client?  The vBuckets blog post didn't describe how different clients keep 
> their vBuckets in sync, making me think that people typically only have a 
> single client per set of memecached servers.
>
> Thanks,
> Martin
>

Reply via email to