lericson/pylibmc — Issue #80: pylibmc and ketama/failover support
Author: amcfague
Created: 2012-03-02 21:10:41+00:00
State: open

I am having issues when either (a) a server is not available at startup or (b) a server drops during a connection. According to the documentation of both `libmemcached` and `pylibmc`, setting `remove_failed=1` and `ketama=True` in behaviors should enable fail-over should one of the servers go down in a cluster of hosts, while still allowing keys to go to a non-down host.

However, I am not seeing that at all. When I have a node down at start-up, I get:

Exception: error 5 from memcached_set: WRITE FAILURE

When it goes down in the middle of writes, I get:

Exception: error 3 from memcached_set: CONNECTION FAILURE

My question is: is fail-over supported at all? And if not, does it rest on libmemcached or pylibmc to fix?

Thank you!

Specs:
* Ubuntu 11.10 (64-bit)
* libmemcached 1.0.4
* pylibmc 1.2.2