Created
June 27, 2017 09:01
-
-
Save myobie/5c29efff51a69b49f5fd701e4af7a820 to your computer and use it in GitHub Desktop.
The example supervisor tree from the highlander project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| opts = [host, | |
| [stop_on_disconnect: true, name: :zk]] | |
| children = [ | |
| worker(Zookeeper.Client, opts, []), | |
| worker(Registry.Server, [], []), | |
| worker(Registry.NodeCycleServer, [], []), | |
| supervisor(Object.Supervisor, [], []) | |
| ] | |
| supervise children, strategy: :rest_for_one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment