I'm doing some experiments to determine the attitude of Memcached in case of different kind of errors (crash of Memcached node, high latency...). In the case of the crash, the failOver is not what i expected.
For me, when a memcached client crash and with some options activated, the memcached server should after a time stop using the fallen node and use only the remainings nodes.
At the begin of the experiment i use two memcached client and one server with a request generator, i'm storing 10000 request in them, and the request are equally distributed between the clients nodes.
Then i inject the crash on a node and the remaining node will not get the requests from the dead node. I want the new set and get to be done in the remaining node.
The request generator is brutis, and it does one set and nine get every time: set goes from 1 to 10000 and same for get, but set are slower because of the previous repartition.
The option used is (OPT_REMOVE_FAILED_SERVERS, true).
I'm using libmemcached-1.0.16, memcached-1.4.15, and the php version of memcached is 2.1.0.
How could i obtain that once evicted, the hash function send only to living nodes ?
Thanks