Re: Configuration management based on load

2012-01-30 Thread Mohan
It is like a load balancer for socket listeners using Zookeeper. I want to send some information to Zookeeper from each of the socket listeners. This could be the number of bytes waiting to be processed. Zookeeper could then decide based on some configuration data that one or more of the listeners

Re: Configuration management based on load

2012-01-30 Thread Ted Dunning
I am completely clueless about what you are asking here. Can you be a bit more explicit? - do you mean that you want to increase the number of threads in the listeners? - do you mean that you want to increase the number of listeners? - what do you mean by load? Load on Zookeeper? Load on each

Configuration management based on load

2012-01-30 Thread Mohan
As a new user I was trying to understand how a farm of threaded listeners can have their threads bumped up based on load using zookeeper. Is this a conventional usecase for zookeeper ? I understand that it involves programming zookeeper. I read that zookeeper is designed for reads rather than writ

Re: getting the server version from a java client

2012-01-30 Thread N Keywal
Let's start with the JIRA ;-) It's ZOOKEEPER-1381 On Mon, Jan 30, 2012 at 10:03 PM, Mahadev Konar wrote: > Yes please. Prefer a patch with it :) but again thats not necessary! > > > On Mon, Jan 30, 2012 at 12:36 PM, N Keywal wrote: > > Hi, > > > > Thanks for your answers. The workaround is quite

Re: getting the server version from a java client

2012-01-30 Thread Mahadev Konar
Yes please. Prefer a patch with it :) but again thats not necessary! On Mon, Jan 30, 2012 at 12:36 PM, N Keywal wrote: > Hi, > > Thanks for your answers. The workaround is quite smart (thanks again!), but > on the long term, I would definitively prefer a simple API call. It would > be less envir

Re: getting the server version from a java client

2012-01-30 Thread N Keywal
Hi, Thanks for your answers. The workaround is quite smart (thanks again!), but on the long term, I would definitively prefer a simple API call. It would be less environment dependent as well. Do you want me to create a JIRA for it? Cheers, N. On Mon, Jan 30, 2012 at 7:12 PM, Patrick Hunt wro

Re: getting the server version from a java client

2012-01-30 Thread Patrick Hunt
+1, that would be a good api addition. On Mon, Jan 30, 2012 at 10:10 AM, Mahadev Konar wrote: > Keywal, >  Right now there isnt anyway for the client to tell which version of > server its talking to. You can probably hack something around the stat > command: > > echo stat | nc hostname clientport

Re: getting the server version from a java client

2012-01-30 Thread Mahadev Konar
Keywal, Right now there isnt anyway for the client to tell which version of server its talking to. You can probably hack something around the stat command: echo stat | nc hostname clientport to get the version, but other than that we dont have such an api. I think its probably worth having such a

getting the server version from a java client

2012-01-30 Thread N Keywal
Hello, What's the recommended way for a client to get the version of the server it's connected to? I would like to write a (java) client that uses the "multi" function available since 3.4.x, with a fall-back implementation if the server is a 3.3. Or at the very least to check that the server is a