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

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

A few distribution stategies are included in Horde, namely:

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()