Regarding Leader election and the limit on number of clients without performance degradation

2010-07-12 Thread Srikanth Bondalapati:
Hi, I am using ZooKeeper service for leader election and group management. I have read in the site ( http://hadoop.apache.org/zookeeper/docs/r3.2.2/recipes.html#sc_leaderElection) under the "LeaderElection" section that, if all the clients try to access the getChildren() when trying to become a le

Re: Regarding Leader election and the limit on number of clients without performance degradation

2010-07-12 Thread Ted Dunning
Having 16 clients all wake up and ping ZK is an extremely light load. The warning on the recipes page had more to do with the situation where thousands of nodes wake up at the same time. On Mon, Jul 12, 2010 at 1:30 PM, Srikanth Bondalapati: < sbondalap...@tagged.com> wrote: > Hi, > > I am using

Re: Regarding Leader election and the limit on number of clients without performance degradation

2010-07-12 Thread Benjamin Reed
ted is correct, as usual. that warning is really to avoid unnecessary load, and 16 clients really don't generate much of a load at all. even with thousands of cliets, if they really need the list of children it will still be ok. the point of that note was that for leader election only one proce

Re: Regarding Leader election and the limit on number of clients without performance degradation

2010-07-12 Thread Srikanth Bondalapati:
Thanks a lot Ted and Benjamin. On Mon, Jul 12, 2010 at 3:01 PM, Benjamin Reed wrote: > ted is correct, as usual. that warning is really to avoid unnecessary load, > and 16 clients really don't generate much of a load at all. even with > thousands of cliets, if they really need the list of childr

ZkClient package

2010-07-12 Thread Jun Rao
Hi, ZkClient (http://github.com/sgroschupf/zkclient) provides a nice wrapper around the ZooKeeper client and handles things like retry during ConnectionLoss events, and auto reconnect. Does anyone (other than Katta) use it? Would people recommend using it? Thanks, Jun