Horde.DistributionStrategy behaviour (Horde v0.8.5) View Source

Define your own distribution strategy by implementing this behaviour and configuring Horde to use it.

See Horde.UniformQuorumDistribution and Horde.UniformDistribution for examples.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback

choose_node(identifier, members)

View Source

Specs

choose_node(
  identifier :: String.t(),
  members :: [Horde.DynamicSupervisor.Member.t()]
) :: {:ok, Horde.DynamicSupervisor.Member.t()} | {:error, reason :: String.t()}

Specs

has_quorum?(members :: [Horde.DynamicSupervisor.Member.t()]) :: boolean()