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

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

A few distribution stategies are included in Horde, namely:

Summary

Types

Callbacks

Link to this callback

choose_node(spec, members)

View Source
@callback choose_node(
  spec :: Supervisor.child_spec(),
  members :: [member()]
) :: {:ok, member()} | {:error, reason :: String.t()}
@callback has_quorum?(members :: [member()]) :: boolean()