An adaptation of other scripts to ease creating and running Zookeeper clusters for testing
Ruby Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
launchd-wrapper.sh
log4j.properties
start-zk.rb
test-app.rb
tmux-zk-cluster.conf

README.md

zkclustertest

"There's a reason they call it a cluster" - Nathan Olla

This code is an adaptation of similar (and possibly better) code out there that does the legwork to set up a zookeeper cluster. In the Grand Tradition of Not Invented Here, I rewrote it using the tools I know best (ruby, rake) so that I could modify it as needed.

The script is essentially a rakefile that generates the config files to point to the other members of the cluster, set up data directories, and start the cluster. Rather than write a whole bunch of code to manage process lifetime and children and such, we'll just use tmux.