View Source ProcessHub.Strategy.PartitionTolerance.StaticQuorum (ProcessHub v0.2.0-alpha)

The static quorum strategy for partition tolerance is used when the ProcessHub cluster is concerned with partition failures, and the cluster size is known.

When a node leaves or joins the ProcessHub cluster, the static quorum strategy will check if the quorum is present. If the quorum is not present, the ProcessHub will be considered in a network partition, and the distributed supervisor process of the ProcessHub will be terminated along with all the child processes.

Summary

Types

t()

Static quorum strategy configuration.

Types

@type t() :: %ProcessHub.Strategy.PartitionTolerance.StaticQuorum{
  quorum_size: non_neg_integer(),
  startup_confirm: boolean()
}

Static quorum strategy configuration.

  • quorum_size - The quorum size is measured in the number of nodes. For example, 3 means that there should be at least 3 nodes in the cluster for the ProcessHub to be considered healthy.
  • startup_confirm - If set to true, the ProcessHub will check if the quorum is present when the ProcessHub is starting up. If the quorum is not present, it will be considered as a network partition. The default value is false.