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 <GUYM@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
>
|