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 at 1:28 PM, Asankha C. Perera <asan...@apache.org>wrote:
> 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  from the user list by Ted Dunning from some
> months back :
> "My experience with Katta has led me to believe that embedding a ZK in a
> product is almost always a bad idea. - The problems are that you can't
> administer the Zookeeper cluster independently and that the cluster
> typically goes down when the associated service goes down."
> However, I believe that both the above are fine to live with for the
> application under consideration, as ZK will be used only to coordinate
> the larger application. Is there anything else that needs to be
> considered - and can I safely shutdown the clientPort since the
> application is always in the same JVM - but, if I do that how would I
> "connect" to ZK thereafter ?
> thanks and regards
>  http://markmail.org/message/tjonwec7p7dhfpms