-
Notifications
You must be signed in to change notification settings - Fork 116
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
Zookeeper always get the same myID #18
Comments
Right, it an ideal automated world, it should be working. An easy workaround is to use Hiera:
zookeeper::id: '1'
zookeeper::id: '2'
zookeeper::id: '3' Typically you deploy 3 or 5 ZooKeepers, so it ain't that much work. But, I can almost hear you, "it's not automated!". I've tried an approach with concat module, another one with datacat which is still part of the code. But it wasn't working as expected, so I end up with the "static" fallback. By the way, I'm open to pull requests :) Another solution would require PuppetDB, as it is mentioned here. Which is makes deployment dependent on another component. ZooKeeper should be a consistent (and reliable) storage, mine experience with automated configuration was, that it lost the reliability, thus I removed the datacat integration. That was a year ago, I can give it a try and add some flag for automatic myID configuration. Until the approach is properly tested I don't want to release as the default configuration. |
Hiya, |
I agree, it would be great to have a working cluster out of the box. Another problem is, that it might not be possible to setup all ZooKeepers in a single Puppet run (we don't know all IP addresses of nodes with ZooKeeper during first run). This could be a problem during provisioning, so having static fallback it's quite necessary. Even if we implement this feature, it's hard to test it with a simple rspec. Using beaker for proper testing might be good idea. |
See also bug #27 for more ideas. |
all of them get myID = 1
shouldn't this be automated? instead I need to create hierarchy which is for me not needed, or am I doing sth wrong?
The text was updated successfully, but these errors were encountered: