mbabineau / docker-zk-exhibitor

Docker definition for an Exhibitor-managed ZooKeeper instance
https://registry.hub.docker.com/u/mbabineau/zookeeper-exhibitor
Other
68 stars 88 forks source link

zk clustering #11

Open panda87 opened 9 years ago

panda87 commented 9 years ago

Hi

Today I pulled this image and successfully ran with some params. When I ran the 'nc' command to see the Mode of this node, the result was 'standalone'

According Netflix wiki, I need to setup Exhibitor for each node, so for my use case it's 3.

My question is, how can I setup 3 nodes in a cluster with this image? since when I change the zoo.cfg file or even COPY it from outside the container, it's changed during the wrapper script.

Thanks

brandongalbraith commented 9 years ago

@panda87 Have you attempting providing the other nodes' IP addresses using the Exhibitor UI?

panda87 commented 9 years ago

@brandongalbraith Thanks, this probably was the problem.

But, now I'm trying to expose the zk jvm metrics through the jmx protocol. So, I tried to add JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=9000" to java.env script box, restart and open the jconsole, it's managed to connect for 1s and then disconnected.

Do you have an idea?

brandongalbraith commented 9 years ago

@panda87 Unfortunately not; I haven't tried getting JVM stats out. Sorry I couldn't be of more help!

dkjhanitt commented 8 years ago

Hi @brandongalbraith I'm trying to bring up 3 node Zk cluster. Ideally I will prefer to have auto-discovery .. I've specified S3_Bucket and S3_Prefix and my nodes are up. Still they're not able to auto-discover ? Do I need to write any config related details in the S3_Bucket ? Thanks, Deepak

guizmaii commented 8 years ago

Hi @dkjhanitt

Maybe your question need a new ticket instead of changing the subject of this one. Or maybe your question will be in a better place in StackOverflow than here. Create a StackOverflow question, and post the link here. If I can I'll help you. ;)

vlombardi commented 8 years ago

Hi, I'm trying to set up an ensemble of 3 nodes too, but with no success. This is what I've tried:

The I tried to apply the changes all at once and with a rolling release.

What it actually happens is that the ensamble anyway gets back to the initial configuration (i.e. no multiple servers, and "Automatic Server List Add/Remove" fields reset to 0.

Do you know what I'm missing?

Thanx a lot guys!