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

Requirements
---
* Ruby 1.9.3
* ZeroMQ 2.1 with OpenPGM support, for encapsulated multicast

Command Line Usage
---
There is a command line 'pylon' script included for starting test
instances of the library. Options:

```
$ bin/pylon --help
Usage: bin/pylon (options)
    -c, --config CONFIG              The configuration file to use
    -d, --daemonize                  send pylon to the background
    -g, --group GROUP                Group to set privilege to
    -l, --log_level LEVEL            Set the log level (debug, info, warn, error, fatal) (required)
    -m, --minimum-master-nodes NODES How many nodes to wait for before starting master election
    -M, --multicast                  Enable multicast support via encapuslated pragmatic general multicast
    -a, --multicast-address ADDRESS  Address to use for UDP multicast
    -i INTERFACE,                    Interface to use to send multicast over
        --multicast-interface
    -L, --multicast-loopback         Enable multicast over loopback interfaces
    -p, --multicast-port PORT        Port to use for UDP multicast
    -t, --tcp-address TCPADDRESS     Interface to use to bind request socket to
    -P, --tcp-port TCPPORT           Port to bind request socket to
    -u, --user USER                  User to set privilege to
    -h, --help                       Show this message
```

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
$ bundle install
$ bundle exec bin/pylon --minimum-master-nodes 2 --multicast --multicast-interface eth1 --tcp-address 192.168.1.3 --tcp-port 13335 -l debug
$ bundle exec bin/pylon --minimum-master-nodes 2 --multicast --multicast-interface eth1 --tcp-address 192.168.1.3 --tcp-port 13336 -l debug
```<commit_msg>update doc for dcell changes<commit_after>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
```
{'fraction_non_alphanumeric': 0.09726027397260274, 'fraction_numerical': 0.023287671232876714, 'mean_word_length': 2.5928659286592866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1000994', 'n_tokens_mistral': 915, 'n_tokens_neox': 831, 'n_words': 363}