coordination helpers for distributed celluloid for use with systems automation frameworks e.g. Chef
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
cookbooks/pylon
lib
spec
.gitignore
.rvmrc
.travis.yml
Gemfile
Guardfile
LICENSE
NOTICE
Rakefile
Vagrantfile
pylon.gemspec
readme.md

readme.md

Pylon

A library designed to allow you to perform simple master election while knowing little about your peers, for use with Chef.

Requirements

  • JRuby 1.6 or 1.7, (1.9 mode only)
  • ZeroMQ 2.1
  • Zookeeper ~3.3.3

Command Line Usage

There is a command line 'pylon' script included for starting test instances of the library.

Give it a shot!

This will give you two pylon nodes running across eth1, on the tcp ip/port specified, with multicast and multicast loopback enabled. Should see a master election happen! Enjoy.

# apt-get isntall libzmq-dev
# apt-get install zookeeperd
$ bundle install
$ bundle exec bin/pylon -l debug --dcell-addr tcp://0.0.0.0:55665 --dcell-id haxstation1
$ bundle exec bin/pylon -l debug --dcell-addr tcp://0.0.0.0:55667 --dcell-id haxstation2