Open ghost opened 5 years ago
please give any examples or links for singleton Implementation of dyno client
@chinmayvenkat I don't understand your issue properly. If a node is down, you won't be able to talk to it and you'll fallback to a different replica which you say works correctly. The DynoJedisDemo has implementations of how to use the Dyno client: https://github.com/Netflix/dyno/blob/158f807083ea8e9b09c8089cb07f98e954ad5b23/dyno-demo/src/main/java/com/netflix/dyno/demo/redis/DynoJedisDemo.java
I build a dynomite cluster of 3 racks. Each rack consists of two nodes. I implemented dyno client for Java. I used singleton Implementation. if one of the node is getting down. then I am observed errors of peer not connected. if I again establish the connection when one of the node get down. it works properly
`public static DynoJedisClient establishingConnection() {
}``
single ton implementation
public static DynoJedisClient build() { DynoJedisClient dynoClient = dynoJedisClient.get(module); if (dynoJedisClient.get(module) == null) { synchronized(DynomiteConnection.class) { if (dynoJedisClient.get(module) == null) { dynoClient = establishingConnection() ; dynoJedisClient.put(module,dynoClient); } } } return dynoClient; }