Repository navigation
|
Apologies in advance for what's probably a very amateur question, but can someone help me understand what role a list of memcache servers performs? Are they active/passive failover, sessions hashed across the list, all sessions replicated to all servers, or something else completely? I'm considering what effect it would have if we moved from 1:1 to many:many for our httpd and memcache, still with load-balancer sticky in front. Thanks! |
Replies: 3 comments
|
Not a silly question. From the source ( It's sharding, not failover and not replication. The module just registers every host from What happens when one server is down. If the connection fails, that server is marked dead; lookups that hash to it move on to the next server in the list, and the dead one is retried every 5 seconds. Nothing is copied: the sessions that lived on the dead server are simply missing (the module even special-cases For your many:many plan:
Not verified: I haven't run this, and I read apr-util 1.6.x, so your distro's apr-util might differ slightly. |
|
@zandbelt could you add a 👍 / 👎 when you get a moment? Maybe I was overly optimistic for a human reply instead of Claude's interpretation |
|
it's a memcache questoin really, and I believe the answer is right |
it's a memcache questoin really, and I believe the answer is right