Automatic Erlang cluster formation and healing for Elixir apps, with pluggable strategies
open sourceMITfree
libcluster forms and heals clusters of Erlang nodes automatically for Elixir and Erlang applications, with static or dynamic membership. You define topologies and start its Cluster.Supervisor; a pluggable strategy system finds the nodes, with strategies built in for distributed Erlang (epmd and .hosts.erlang), multicast UDP gossip, Kubernetes (through its API, DNS or DNS SRV records) and Rancher's metadata API. You can write your own strategies, or replace distributed Erlang's plumbing with something like Partisan by implementing a few callbacks.
Problems it solves
- connect my Elixir nodes into a cluster automatically on Kubernetes
- have Erlang nodes find and rejoin each other after a restart
- form a BEAM cluster without hard-coding node names
Features
- automatic cluster formation and healing
- built-in strategies: distributed Erlang (epmd, .hosts.erlang), multicast UDP gossip, Kubernetes (API, DNS, DNS SRV) and Rancher
- custom clustering strategies
- pluggable distribution plumbing, such as Partisan
