Dynamic addition of servers to Zookeeper cluster

2009-03-13 Thread rag...@yahoo.com
ZooKeeper gurus, Can I add servers dynamically to a ZooKeeper cluster? If I understand ZooKeepr cluster correctly, each server should know about other servers in the cluster during server start up. Does this mean that the cluster size is static once the cluster is running and a new server can

Incorrect implementation of QuorumCnxManager.haveDelivered()?

2009-03-25 Thread rag...@yahoo.com
Hello, I am a ZooKeeper newbie, so pardon me if I am repeating questions that have been raised before. I believe the implementation of QuorumCnxManager.haveDelivered() is incorrect. If I understand correctly, queueSendMap contains a queue of messages for each peer to which the local peer is t

Divergence in ZK transaction logs in some corner cases?

2009-03-27 Thread rag...@yahoo.com
ZK gurus, I think the ZK transaction logs can diverge from one another in some corner cases. I have one such corner case listed below, could you please confirm if my understanding is correct? Imagine a 5 srever ensemble (A,B,C,D,E). All the servers are @ zxid 9. A is the leader and it starts

Re: Divergence in ZK transaction logs in some corner cases?

2009-03-30 Thread rag...@yahoo.com
this in: http://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperInternals.html#sc_atomicBroadcast we have a presentation as well that i'll put up that may make it more clear. ben rag...@yahoo.com wrote: > ZK gurus, > > I think the ZK transaction logs can diverge from one another in some cor

FastLeaderElection

2009-04-10 Thread rag...@yahoo.com
Hi, Could someone please explain quickly why logical clock is used in FastLeaderElection? It looks to me like the peers can converge on a leader (with highest zxid or server id if zxids are the same) even without the logical clock. May be I am missing something here, I could not figure out why

Re: FastLeaderElection

2009-04-13 Thread rag...@yahoo.com
Could someone please throw some light on this? Thanks. -Raghu - Original Message From: "rag...@yahoo.com" To: zookeeper-user@hadoop.apache.org Sent: Friday, 10 April, 2009 8:11:34 Subject: FastLeaderElection Hi, Could someone please explain quickly why logical clock

Server-client connection timeout

2009-04-21 Thread rag...@yahoo.com
I have a question related how ZK server deals with client timeout. If the client loses connectivity with the ZK server (which is still alive), then the ZK server will close the client session by issuing a closeSession transaction, correct? So even if the client has reestablished the session by

Dynamic server addition/deletion

2009-05-01 Thread rag...@yahoo.com
Our product would require support for dynamic addition and deletion of ZK servers to the cluster. We would like to come up with a design, propose the design to the ZK developers and then implement the feature once the design is signed off by the ZK developers. Before we go down that path, I wou

Re: NodeChildrenChanged WatchedEvent

2009-05-08 Thread rag...@yahoo.com
Would it help if we have a seperate API to set a watch on a node, but the client sends the previous version of the node it saw as a parameter. When the server sets the watch, if the version of the node is higher than the version sent by the client, the watch will be triggered immediately. This

ZK quota

2009-06-18 Thread rag...@yahoo.com
Is there a reason why node count/byte quota is not actually enforced but rather ZK just warns? Are there any plans to enforce the quota in a future release? Thanks Raghu

Re: ZK quota

2009-06-29 Thread rag...@yahoo.com
> Thanks > mahadev > > > On 6/18/09 7:01 PM, "rag...@yahoo.com" wrote: > >> Is there a reason why node count/byte quota is not actually enforced but >> rather ZK just warns? Are there any plans to enforce the quota in a future >> release? >> >> Thanks >> Raghu >> >> >> >