What exactly happens when a memcached server fails in standard hasing scenario and consistent hashing scenario

84 views
Skip to first unread message

SivaRam M

unread,
Oct 16, 2013, 3:13:57 AM10/16/13
to memc...@googlegroups.com

Hi ,
     I have installed memcached server on two machines and added these two server in the client list.
Now im fetching say Key A from server A .  If server A is removed ,this is my understanding . By default I'm using standard hashing ,client will maintain list of servers along with the status of servers  if the server has run down . then there will be cache miss . In case of consistent hashing if the server A fails the keys are evenly distributed among other servers.

what will happen if the server A fails ??
Please correct me if any of my concepts are wrong.

Thanks
Sivaram

Perrin Harkins

unread,
Oct 16, 2013, 9:31:19 AM10/16/13
to memc...@googlegroups.com
What happens on the server side is that all of the data in that server is permanently lost.  What happens on the client side depends on the client.  There are dozens of clients for memcached.  If you tell us which client you're using, maybe someone here who is familiar with it can tell you how it behaves.

- Perrin


--
 
---
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 memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

SivaRam M

unread,
Oct 16, 2013, 6:31:03 PM10/16/13
to memc...@googlegroups.com
Thanks perrin that was very helpful.I'm using php-memcache client for connecting to memcached .I just want to know is there any failover mechanism that is provided when a server is lost. 

SivaRam M

unread,
Oct 16, 2013, 6:32:17 PM10/16/13
to memc...@googlegroups.com
I'm using php-memcache client for connecting to memcached .I just want to know is there any failover mechanism that is provided when a server is lost. 
something like client storing the status of the memcahed server before hasing a particular key.

Yiftach Shoolman

unread,
Oct 17, 2013, 1:04:04 AM10/17/13
to memc...@googlegroups.com
Failure and replication capabilities are neither supported by standard Memcached clients nor by the Memcached server. 
That said, you can find some commercial products and services that provide these capabilities. 
  


--
 
---
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 memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Yiftach Shoolman
+972-54-7634621

Roberto Spadim

unread,
Oct 17, 2013, 11:01:25 AM10/17/13
to memc...@googlegroups.com
??????
there're opensource solutions...
repcache (old but works) is a async replication
redis and others could do the job too


2013/10/17 Yiftach Shoolman <yiftach....@gmail.com>



--
Roberto Spadim
Reply all
Reply to author
Forward
0 new messages