Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconinstall-open-jdk
file-type-iconzookeeper-ami
file-type-iconmock
file-type-iconREADME.md
file-type-iconconfigure-image.sh
file-type-icondocker-compose.yml
file-type-iconzookeeper.json
file-type-iconzookeeper-cluster
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-icon.pre-commit-hooks.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconinstall-open-jdk
file-type-iconzookeeper-ami
file-type-iconmock
file-type-iconREADME.md
file-type-iconconfigure-image.sh
file-type-icondocker-compose.yml
file-type-iconzookeeper.json
file-type-iconzookeeper-cluster
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-icon.pre-commit-hooks.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
Apache ZooKeeper

Apache ZooKeeper

Deploy an Apache ZooKeeper cluster. Supports automatic bootstrap, Exhibitor, zero-downtime rolling deployment, and auto healing.

Code Preview

Preview the Code

mobile file icon

README.md

down

ZooKeeper Example AMI

This folder contains an example Packer template that can be used to create an Amazon Machine Image (AMI) with ZooKeeper, Exhibitor, and all their dependencies installed. To deploy this AMI, see the zookeeper-cluster example.

This Packer template actually builds two AMIs, one on top of Amazon Linux and one on top of Ubuntu. Pick whichever distro you prefer.

Quick start

To build the AMI:

  1. Install Packer.
  2. Set up your AWS credentials as environment variables.
  3. Set the GITHUB_OAUTH_TOKEN environment variable to a valid GitHub auth token with "repo" access. You can generate one here: https://github.com/settings/tokens
  4. Run packer build -only=amazon-linux-ami,ubuntu-ami,centos-ami zookeeper.json to create a new AMI in your AWS account. If you only want to build the AMI for one Linux distro remove the names of the other in the -only parameter. Note down the ID of this new AMI.

To deploy the new AMI, plug its ID into the zookeeper-cluster example.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?