I have a question about memcached distribution across nodes. We have 20 memcached nodes with 200GB memcached on each. Our apps are PHP apps.
$memcache->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT);
What will be the result if the following things happen :
- Node 2 goes down
A key "XXX" which is on node 2 is asking to be setted
=> I suppose the key will be written on another node, maybe node 5
- Node 2 comes back up
- A try to get key "XXX".
Which node will memcached get the key from : node 5 or node 2 ?