Embedding ZK in another application

2010-04-23 Thread Asankha C. Perera
Hi All I'm very new to ZK, and am looking at embeding ZK into an app that needs cluster management - and the objective is to use ZK to notify application cluster control operations (e.g. shutdown etc) across nodes. I came across this post [1] from the user list by Ted Dunning from some months

Re: Embedding ZK in another application

2010-04-23 Thread Vishal K
Hi, Good question. We are planning to do something similar as well and it will great to know if there are any issues with embedding ZK server into an app. We simply use QourumPeerMain and QourumPeer from our app to start/stop the ZK server. Is this not a good way to do it? On Fri, Apr 23, 2010

Re: Embedding ZK in another application

2010-04-23 Thread Mahadev Konar
Hi Vishal and Ashanka, I think Ted and Pat had somewhat comentted on this before. Reiterating these comments below. If you are ok with these points I see no concern in ZooKeeper as an embedded application. Also, as Pat mentioned earlier there are some cases where the server code will

Re: Embedding ZK in another application

2010-04-23 Thread Asankha C. Perera
Hi Mahadev I think Ted and Pat had somewhat comentted on this before. Reiterating these comments below. If you are ok with these points I see no concern in ZooKeeper as an embedded application... Thanks, I missed this on the archives, and it helps!.. I guess if we still decide to embed,

Re: Embedding ZK in another application

2010-04-23 Thread Mahadev Konar
That's true! Thanks mahadev On 4/23/10 11:41 AM, Asankha C. Perera asan...@apache.org wrote: Hi Mahadev I think Ted and Pat had somewhat comentted on this before. Reiterating these comments below. If you are ok with these points I see no concern in ZooKeeper as an embedded

Re: Embedding ZK in another application

2010-04-23 Thread Ted Dunning
It is, of course, your decision, but a key coordination function is to determine whether your application is up or not. That is very hard to do if Zookeeper is inside your application. On Fri, Apr 23, 2010 at 10:28 AM, Asankha C. Perera asan...@apache.orgwrote: However, I believe that both the