Closed GoogleCodeExporter closed 8 years ago
Fixed some time ago, sorry for the lack of notification.
Original comment by ingen...@gmail.com
on 19 Aug 2012 at 8:28
I understand this should already fixed, but i am using version 2.7.3 and i
still see this happening.
My situation is that i don't have an internal DNS server, so i am relaying on
hosts file resolution.
The problem is that i have 2 servers- server-1 and server-2. When each of those
is interpreting it's host name it get this:
server-1/12.0.0.1,server-1/192.168.1.1
server-2/12.0.0.1,server-2/192.168.1.2
This causes different key distribution on each server.
Is this issue unique to my situation of using the hosts file?
Original comment by daniel.g...@gmail.com
on 3 Dec 2013 at 4:25
this helped us:
return new KetamaNodeLocator(nodes, DefaultHashAlgorithm.KETAMA_HASH, new
KetamaNodeLocatorConfiguration() {
@Override
public String getKeyForNode(final MemcachedNode node, final int repetition) {
final InetSocketAddress inetSocketAddress = (InetSocketAddress) node.getSocketAddress();
final int port = inetSocketAddress.getPort();
if (port == 11211) {
return String.format("%s-%d", inetSocketAddress.getHostString(), repetition);
} else {
return String.format("%s:%d-%d", inetSocketAddress.getHostString(), port, repetition);
}
}
@Override
public int getNodeRepetitions() {
return 160;
}
})
Original comment by sbhus...@etsy.com
on 4 Sep 2014 at 3:39
Original issue reported on code.google.com by
steve....@gmail.com
on 11 Feb 2010 at 12:11