Autocluster is a mechanism for automatic peer discovery.
Peer discovery is done with the help of several modules implementing
classy_discovery_strategy behavior.
The strategy is configured via discovery_strategy OTP application environment variable. This variable has the form of a 2-tuple with the following elements:
static
New methods can be registered using classy_discovery_strategy:hook/2 function.
Additionally, there is a hook that can be used to filter and prioritize discovered nodes:
classy:pre_autocluster/2.
Autocluster logic runs only on singleton sites. It is inactive on sites that already have peers (up or down).
The following strategies are available: