Skip to content

Commit

Permalink
Merge pull request unbit#50 from prymitive/patch-1
Browse files Browse the repository at this point in the history
Update legion docs with join hook info
  • Loading branch information
unbit committed Mar 29, 2013
2 parents 8c0eb62 + f649ac9 commit 27919a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Legion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Each node has a valor (different from the others, if possible).

The node with the higher valor is the Lord of the Legion (or if you like a more engineer-friendly term: the master)

This constant fight generates 4 kind of events: start of the fight (setup), end of the fight (death), becoming a lord (lord), loosing the lord title (unlord).
This constant fight generates 5 kind of events:

1. setup - when legion subsystem is started on a node
2. join - the first time quorum is reached, only on the newly joined node
3. lord - when node becomes a lord
4. unlord - when node loses the lord title
5. death - when legion subsystem is shuting down

You can trigger actions every time such an event rises, and this should switch-on the light on your brain...

Expand Down

0 comments on commit 27919a2

Please sign in to comment.