libcluster v2.5.0 Cluster.Strategy behaviour
This module defines the behaviour for implementing clustering strategies.
Link to this section Summary
Functions
Given a list of node names, attempts to connect to all of them.
Returns :ok
if all nodes connected, or {:error, [{node, reason}, ..]}
if we failed to connect to some nodes
Given a list of node names, attempts to disconnect from all of them.
Returns :ok
if all nodes disconnected, or {:error, [{node, reason}, ..]}
if we failed to disconnect from some nodes
Link to this section Types
Link to this section Functions
Given a list of node names, attempts to connect to all of them.
Returns :ok
if all nodes connected, or {:error, [{node, reason}, ..]}
if we failed to connect to some nodes.
All failures are logged.
Given a list of node names, attempts to disconnect from all of them.
Returns :ok
if all nodes disconnected, or {:error, [{node, reason}, ..]}
if we failed to disconnect from some nodes.
All failures are logged.
Link to this section Callbacks
start_link(strategy_opts()) :: {:ok, pid()} | :ignore | {:error, reason :: term()}