Cloister (cloister v0.8.0) View Source
Cloister is a consensus helper for clusters.
It is designed to be a configurable drop-in for transparent cluster support.
Supported options
:otp_app- OTP application this cloister runs for. The default value is:cloister.:sentry- Required. The way the cloister knows how to build cluster; might be a service name or a node list. E. g.:"cloister.local"or~w[c1@127.0.0.1 c2@127.0.0.1]a. Default[node()].:consensus- Required. Number of nodes to consider consensus. The default value is1.:listener- Listener to be called when the ring is changed. The default value isCloister.Listener.Default.:additional_modules- Additional modules to include intoCloister.Manager’s supervision tree.:ring- The name of theHashRingto be used. If set, the HashRing is assumed to be managed externally.:manager- Set of options to configureCloister.Managerwhen started in a supervision tree.:name- Name of theManagerprocess.:state- The parameters to configure theManagerouside ofCloisterapplication.:otp_app- Required.:additional_modules
:monitor_opts- FineCloister.Monitor’s tuning.:name- Required. Name of theMonitorprocess.
:loopback?- Use loopback interface in FQ node name? The default value isfalse.:magic?- When false, allows to avoid node reinitialization The default value istrue.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Returns true if the hashring points to this node for the term given, false otherwise
Returns the ring from current node cloister monitor state
Returns who would be chosen by a hash ring for the term in the group given
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Specs
Returns true if the hashring points to this node for the term given, false otherwise
Specs
ring() :: atom()
Returns the ring from current node cloister monitor state
Specs
whois(group :: atom(), term :: any()) :: node() | {:error, {:invalid_ring, :no_nodes}} | {:error, {:not_our_ring, atom()}}
Returns who would be chosen by a hash ring for the term in the group given