Skip to content

Instantly share code, notes, and snippets.

@chiragtoor
Created December 4, 2018 01:09
Show Gist options
  • Save chiragtoor/e705d1ccb78d8d3b073a288e1c2bc188 to your computer and use it in GitHub Desktop.
Save chiragtoor/e705d1ccb78d8d3b073a288e1c2bc188 to your computer and use it in GitHub Desktop.
# ...
# 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