Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zk clustering #11

Open
panda87 opened this issue Sep 9, 2015 · 6 comments
Open

zk clustering #11

panda87 opened this issue Sep 9, 2015 · 6 comments

Comments

@panda87
Copy link

panda87 commented Sep 9, 2015

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
Copy link

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

@panda87
Copy link
Author

panda87 commented Sep 10, 2015

@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
Copy link

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

@dkjhanitt
Copy link

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
Copy link
Contributor

guizmaii commented Feb 25, 2016

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
Copy link

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

  • startup 3 EC2 VMs and run on each this docker container (S3 buckets appear to be set properly)
  • accessed the exhibitor UI and put:
    • in the field "Servers" in the "Ensemble" area the following text:
      S:1:public-ec2-address-of-host-1,S:2:public-ec2-address-of-host-2,S:3:public-ec2-address-of-host-3
    • in the area "Automatic Server List Add/Remove", i set a value of 3 in the "Fixed Ensemble Size" field and a value of 10000 in the field "Settling Period (ms)"

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants