Kent Närling 2011-11-25, 14:28
-Re: Having a primary server in the connect string?
Kapil Thangavelu 2011-11-25, 22:19
you can instruct the client to use deterministic order among the
passed in servers, the original intent was for testing, for real world
scenarios you'd want to scramble the non localhost nodes to avoid a
unbalanced load. its unclear what scenario would allow for the local
zk to fail but still allow connectivity to other servers.. ymmv
On Fri, Nov 25, 2011 at 9:28 AM, Kent Närling <[EMAIL PROTECTED]> wrote:
> In the Zookeeper constructor javadoc it says:
> "The instantiated ZooKeeper client object will pick an arbitrary
> server from the connectString and attempt to connect to it."
> Is there any way of having multiple servers but having one acting as a
> primary server which it will prefer?
> We are planning to deploy a cluster where we want to have identical
> nodes (ie all services on all nodes), so in that case it naturally
> seems preferrable that the client connects to the local zookeeper node
=?KOI8-U?B?96bUwcymyiD0yc... 2011-11-26, 12:00