Open bitchkat opened 6 years ago
It looks like running docker run with --init makes the container behave a lot better. That causes the zombie processes to be reaped. Without them being reaped, jps output was polluted with entries for the zombie QuorumPeerMain instances.
Can confirm --init fixed a lot of issues i had. I couldn't work out why the initial startup worked fine but then any change would cause a cascading fail of all zk nodes. It seems the zombie processes caused the running checks to fail and then in turn the start as it found it was still running.
run command in dockerfile is effective during image build only . zookeeper need explicitly server setting in zoo.cfg, it is better to have shell script to inject dynamic parameter from env before exhibitor start
Does anyone have an updated docker container for exhibitor? The old netflixoss/exhibitor:1.5.2 launches but uses pretty outdated versions of docker and exhibitor.
Locally I package zookeeper and exhibitor as rpms and create a base container that sets up Centos 7.4 with my local yum repo configured. I use the following docker file:
and my exhibitor.properties looks like
I run the container via
docker run -d -p 8080:8080 -p 2181:2181 --name exhibitor company/zookeeper
It goes through a lengthy cycle of starting zookeeper, killing it, until it deems it running:
On the Control Panel it will show server id -1 and status serving for a brief period and then switch to
and in the docker image there is a zombie process for every zookeeper that was started and stopped.
While its cycling, the config tab always has an empty servers list. When it finally decides that zookeeper is up, the server list is populated with the containers host name.
Any thoughts?