RE: [Zookeeper-user] Leader election

2008-07-11 Thread Jacob Levy
Avinash The following protocol will help you fix the observed misbehavior. As Flavio points out, you cannot rely on the order of nodes in getChildren, you must use an intrinsic property of each node to determine who is the leader. The protocol devised by Runping Qi and described here will do th

RE: [Zookeeper-user] Scalability and ZooKeeper java client thread safety

2008-07-15 Thread Jacob Levy
Hi Anthony Scalability depends on the mix of reads and writes you do with ZooKeeper. If all communication is going through ZooKeeper, then you're probably expecting 1 or more reads per write. In that case (about equal numbers of reads and writes), your scalability is limited by the number of writ