Created
December 4, 2018 01:09
-
-
Save chiragtoor/e705d1ccb78d8d3b073a288e1c2bc188 to your computer and use it in GitHub Desktop.
This file contains 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
# ... | |
# No longer take in NODES from env | |
# case System.get_env("NODES") do | |
# nodes when is_binary(nodes) -> | |
# nodes | |
# |> String.split(",") | |
# |> Enum.map(&String.to_atom/1) | |
# |> Enum.each(&Node.connect/1) | |
# _ -> | |
# nil | |
# end | |
# env based LibCluster topologies | |
topologies = Application.get_env(:libcluster, :topologies) | |
children = [ | |
# add a Cluster Supervisor using configurable topology | |
{ Cluster.Supervisor, [topologies, [name: ExCluster.ClusterSupervisor]] }, | |
{ ExCluster.StateHandoff, [] }, | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment