libketama

Memcached consistent hashing not working with 3 of 4 servers down

点点圈 提交于 2019-12-10 12:37:22
问题 Story I have 3 memcached servers running where I shutdown the one or the other to investigate how PHP-memcached behaves upon a server not beeing reachable. I have defined 4 servers in PHP, 1 to simulate a server that is mostly offline (spare server). When I shutdown 1 server (=> 2 are still online), the third ->get() gives me a result. When I shutdown one more server (=> 1 is still online), it won't find objects pushed to that last server. Sample output First run, 3 of 4 servers up: Entity