Developing a dynamic Elixir cluster on Kubernetes (K8s) can be challenging due to the dynamic nature of K8s and the changing IP and hostname of pods.
The ClusterHelper library has been created to address this challenge by mapping roles or IDs to Elixir node names at runtime.
This library allows for automatic updating of node roles when a node joins the cluster and provides a way for other nodes to lookup Elixir node names when needed.
Using ClusterHelper and the EasyRpc library, scaling the number of Elixir nodes (pods on K8s) becomes easier, as there is no need to worry about Elixir node names or mapping them on K8s.