You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Guy Moshkowich <GU...@il.ibm.com> on 2015/06/10 18:21:10 UTC

Running Zookeeper in a servlet and not as a standalone process

I would like to deploy Zookeeper in our product which is running as a web 
application.
I'm considering the option of adding a simple servlet to run Zookeeper by 
calling Zookeeper main during servlet initialization.
This can simplify the installation and life cycle management of Zookeeper 
service.

Are there any known issues with this approach? 

_____________
Guy Moshkowich


Re: Running Zookeeper in a servlet and not as a standalone process

Posted by Christopher <ct...@apache.org>.
Don't servlets get instantiated and destroyed at the whims of the
container, and usually in response to a client request? That doesn't
seem to be a very suitable arrangement for a zookeeper server's
lifecycle management, to me.

It sounds to me like you are trying to repurpose a web container for
cluster management. I think there might be better container solutions
for that purpose, though. Have you considered something like Docker,
Mesos, or YARN?

--
Christopher L Tubbs II
http://gravatar.com/ctubbsii


On Wed, Jun 10, 2015 at 12:21 PM, Guy Moshkowich <GU...@il.ibm.com> wrote:
> I would like to deploy Zookeeper in our product which is running as a web
> application.
> I'm considering the option of adding a simple servlet to run Zookeeper by
> calling Zookeeper main during servlet initialization.
> This can simplify the installation and life cycle management of Zookeeper
> service.
>
> Are there any known issues with this approach?
>
> _____________
> Guy Moshkowich
>