killme2008 / xmemcached

High performance, easy to use multithreaded memcached client in java.
http://fnil.net/xmemcached
Apache License 2.0
757 stars 281 forks source link

Add AddressMemcachedSessionComparator #99

Closed ssup2 closed 5 years ago

ssup2 commented 5 years ago

Memecached cluster servers/client in container cluster such as k8s has the following characteristics.

Now xmemcached only supports index-based sorting of servers. Index-based sorting can not guarantee the same key/server map that works in multiple containers. To resolve the this issue, I added an address-based sorting method.

The modifications and additions are as follows.

ssup2 commented 5 years ago

is there no feedback??