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
@type member() :: Horde.DynamicSupervisor.Member.t()
@type t() :: module()
Callbacks
@callback choose_node( spec :: Supervisor.child_spec(), members :: [member()] ) :: {:ok, member()} | {:error, reason :: String.t()}