131 words, 1 min read
⚠️ This post links to an external website. ⚠️
When developing Elixir applications, you may want to create a cluster of Erlang nodes at some point, for example, to provide redundancy, high availability, or to share a global state on the cluster (with Mnesia, for example) without hitting an outside DBMS.
This can be easily achieved with
libcluster. As you can see in the docs, it supports multiple strategies.I’ll assume you want to deploy to a Kubernetes cluster, and I’ll be covering this strategy only (
Cluster.Strategy.Kubernetes) for simplicity sake, but you may find some bits interesting even if that doesn’t apply to your case. I’ll also assume that you already have a working basic Kubernetes deploym…
131 words, 1 min read
⚠️ This post links to an external website. ⚠️
When developing Elixir applications, you may want to create a cluster of Erlang nodes at some point, for example, to provide redundancy, high availability, or to share a global state on the cluster (with Mnesia, for example) without hitting an outside DBMS.
This can be easily achieved with
libcluster. As you can see in the docs, it supports multiple strategies.I’ll assume you want to deploy to a Kubernetes cluster, and I’ll be covering this strategy only (
Cluster.Strategy.Kubernetes) for simplicity sake, but you may find some bits interesting even if that doesn’t apply to your case. I’ll also assume that you already have a working basic Kubernetes deployment setup.We’ll deploy a
clusterof Erlangnodes. To avoid confusion with Kubernetes terminology, I’ll use the prefixk8swhen referring to Kube.
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.