View Source ProcessHub.Service.Cluster (ProcessHub v0.2.0-alpha)
ProcessHub
instances with the same hub_id
will automatically form a cluster.
The cluster service provides API functions for managing the cluster.
Summary
Functions
Adds a new node to the hub cluster and returns new list of nodes.
Returns a boolean indicating whether the node exists in the cluster.
Returns a list of nodes in the cluster.
Sends a cluster join event to the remote node.
Removes a node from the cluster and returns new list of nodes.
Functions
Adds a new node to the hub cluster and returns new list of nodes.
Returns a boolean indicating whether the node exists in the cluster.
@spec nodes(ProcessHub.hub_id(), [:include_local] | nil) :: [node()]
Returns a list of nodes in the cluster.
@spec propagate_self(ProcessHub.hub_id(), node()) :: term()
Sends a cluster join event to the remote node.
Removes a node from the cluster and returns new list of nodes.