RE: [Zookeeper-user] how to handle zookeeper server crash from client
The client library already handles all of this for you. Its not very clear, but the `host` parameter to:
> ZooKeeper(String host, int sessionTimeout, Watcher watcher)
... takes a comma separated list of server:port pairs, which should be the full list of servers in your quorum.
What is the received wisdom about how to handle the crash of a ZK server
from the client.
Clearly, reconnecting is necessary. Should that be done by the client by
just using a watcher that probes a list of servers until it finds a live
For that matter, what is best practice relative to initial connection? Are
people using a load balancer to abstract away how many servers are in the
zookeeper cluster? Or are they writing application code to probe the
cluster until a live server is found?