Hi, I have been trying to experiment with libmemcached client library [C] with memcache 1.4 in linux .
I am trying to use consistent hashing implemetation . Scenario : I started 5 memcache instance locally . I wrote a simple program using libmemcached c library . Important flags : memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS,1); memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_KETAMA, 1); I had hardcoded to set 10 values . Then in while loop i wiil be setting more values if needed After this I executed the program .It was setting values in that 5 memcache instance say a ,b -> 1 c -> 2 d,e,i -> 3 f,g ,j-> 4 h -> 5 Then I killed server 3 . In while loop , i tried to set the value d . But I got the error SYSTEM ERROR memcached_do.c It is always trying to set the value d, e, i in server 3 . It is recomputing the no of server points in the continuum . But by consistent hashing , it should go to some particular server [whichever next server point in the circle . Can anyone help me please ? Thanks , Fastshare
