Project

pylon

0.01
No commit activity in last 3 years
No release in over 3 years
leader election with zeromq for ruby using widely available leader election algorithms, similar to gen_leader erlang project in essence
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.4
~> 2.6.0
>= 0

Runtime

~> 1.0.0
~> 1.0.9
~> 0.8.2
>= 0
~> 2.1.2
 Project Readme

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