Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
EverTrue Zookeeper Wrapper Cookbook
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attributes
recipes
spec
test/integration/default/serverspec
.gitignore
.kitchen.yml
Berksfile
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
chefignore
metadata.rb

README.md

et_zookeeper cookbook

Wrapper cookbook for SimpleFinance’s zookeeper & exhibitor cookbooks.

In addition to using these cookbooks to install Exhibitor and Zookeeper, this cookbook sets up and enables shared configuration using S3 for Exhibitor, allowing Exhibitor to handle any additional configuration of the Zookeeper ensemble.

Requirements

  • apt
  • build-essential
  • java
  • zookeeper
  • exhibitor

Usage

Include the default recipe in a node’s run list.

If using with the apache_storm cookbook, also ensure role[zookeeper] is included in the run list.

Attributes

Attributes we override in the two base cookbooks:

  • node['zookeeper']['config']['dataDir']
  • node['zookeeper']['config']['initLimit']
  • node['zookeeper']['config']['syncLimit']
  • node['zookeeper']['config']['autopurge.snapRetainCount']
  • node['zookeeper']['config']['autopurge.purgeInterval']
  • node['exhibitor']['version']
  • node['exhibitor']['snapshot_dir']
  • node['exhibitor']['transaction_dir']
  • node['exhibitor']['log_index_dir']
  • node['exhibitor']['cli']['configtype']

Additional attributes provided by this cookbook:

  • node['exhibitor']['s3']['access-key-id'] – The IAM access key ID
  • node['exhibitor']['s3']['access-secret-key'] — The IAM secret access key
  • node['exhibitor']['cli']['s3region'] – AWS region used to communicate w/ S3
  • node['exhibitor']['cli']['s3config'] – S3 bucket & key name for the shared config file
  • node['et_exhibitor']['defaultconfig']['zoo_cfg_extra'] – Additional values used for the initial bootstrap; these are used to seed the S3 config file if it doesn’t already exist
  • node['java']['jdk_version'] – Which version of Java to install
  • node[:build_essential][:compiletime] — Ensure that build-essential is installed at compile time; needed for some RubyGems to install properly

Recipes

default

  1. Includes apt::default recipe to update apt on Debian systems
  2. Sets additional Zookeeper config for Exhibitor to use
  3. Includes exhibitor::default, which itself includes zookeeper::install, to install and set up Zookeeper and Exhibitor
  4. Includes exhibitor::service, to set up and start the Exhibitor service via runit

Author

Author:: EverTrue, Inc. (devops@evertrue.com)

Something went wrong with that request. Please try again.