zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael.boom" <my_sky...@yahoo.com>
Subject RE: From standalone ZK instance to 3 instances
Date Thu, 21 Nov 2013 10:20:08 GMT
Thank you for the tip Rakesh, it's indeed very helpful.

So after checking the ZK instances with the "stat" command the two instances
seem to be working fine, one as a leader and the other one as a follower.
However this was achieved only by stopping both instances and having the
quorum unavailable for a little while.
When i try to add the second instance without restarting/stopping the first
it doesn't really work, because the first is still in standalone mode:
$ echo stat | nc ZK1 9983
Zookeeper version: 3.4.5-1392090, built on 09/30/2012 17:52 GMT
 /<ZK1 IP>:35517[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/0
Received: 7
Sent: 6
Connections: 1
Outstanding: 0
Zxid: 0x0
Mode: standalone
Node count: 4

and the second replies to the stat command with a:

$ echo stat | nc ZK2 9983
This ZooKeeper instance is not currently serving requests

Is there a way to commute from standalone mode to quorum without
compromising availability?
Thank you!

View this message in context: http://zookeeper-user.578899.n2.nabble.com/From-standalone-ZK-instance-to-3-instances-tp7579325p7579349.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

View raw message