API Reference libcluster v#3.6.1

Copy Markdown View Source

Modules

This module defines the behaviour for implementing clustering strategies.

This clustering strategy gossips node names over multicast UDP, like Cluster.Strategy.Gossip, but every heartbeat is encrypted and authenticated. Use it when hosts you do not control can reach the gossip port.

Assumes you have nodes that respond to the specified DNS query (A record), and which follow the node name pattern of <name>@<ip-address>. If your setup matches those assumptions, this strategy will periodically poll DNS and connect all nodes it finds.

This clustering strategy relies on Erlang's built-in distribution protocol.

This clustering strategy relies on Erlang's built-in distribution protocol by using a .hosts.erlang file (as used by the :net_adm module).

This clustering strategy uses multicast UDP to gossip node names to other nodes on the network. These packets are listened for on each node as well, and a connection will be established between the two nodes if they are reachable on the network, and share the same magic cookie. In this way, a cluster of nodes may be formed dynamically.

This clustering strategy works by fetching endpoints, pods, or EndpointSlices, filtered by given Kubernetes namespace and label.

This clustering strategy works by fetching IP addresses with the help of a headless service in current Kubernetes namespace.

This clustering strategy discovers node hostnames from SRV records for a headless Service. The example below uses a StatefulSet to give Pods stable hostnames.

This clustering strategy relies on Erlang's built-in distribution protocol.

This clustering strategy is specific to the Rancher container platform. It works by querying the platform's metadata API for containers belonging to the same service as the node and attempts to connect them. (see: http://rancher.com/docs/rancher/latest/en/rancher-services/metadata-service/)

The state of one strategy.

This module handles supervising the configured topologies, and is designed to support being started within your own supervision tree, as shown below