Horde v0.5.0-rc.5 Horde.Cluster View Source
Public functions to join and leave hordes.
Calling Horde.Cluster.set_members/2
will join the given members in a cluster. Cluster membership is propagated via a CRDT, so setting it once on a single node is sufficient.
{:ok, sup1} = Horde.Supervisor.start_link([], name: :supervisor_1, strategy: :one_for_one)
{:ok, sup2} = Horde.Supervisor.start_link([], name: :supervisor_2, strategy: :one_for_one)
{:ok, sup3} = Horde.Supervisor.start_link([], name: :supervisor_3, strategy: :one_for_one)
:ok = Horde.Cluster.set_members(:supervisor_1, [:supervisor_1, :supervisor_2, :supervisor_3])
Link to this section Summary
Functions
Get the members (nodes) of the horde
Link to this section Types
Link to this section Functions
Get the members (nodes) of the horde