2 Autocluster

Autocluster is a mechanism for automatic peer discovery. Peer discovery is done with a help of several modules implementing discovery_strategy behavior.

The strategy is configured via discovery_strategy OTP application environment variable. This variable has a form of 2-tuple with the following elements:

  1. Discovery method, such as static
  2. Method-specific parameters

New methods can be registered using classy_discovery_strategy:hook/2 function.

Additionally, there is a hook that allows 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:

JavaScript license information