# \#cluster

**URL:** https://forum.elixirforum.com/tag/cluster/646.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Cluster singleton pattern](https://forum.elixirforum.com/t/cluster-singleton-pattern/76518)

<div class="topic-metadata">

**Author:** [@jola](https://forum.elixirforum.com/u/jola)\
**Replies:** 3\
**Last updated:** [September 1, 2026, 4:05pm UTC](https://forum.elixirforum.com/t/cluster-singleton-pattern/76518 "2026-09-01T16:05:38Z")

</div>

Wrote about how to safely run a globally unique process in an Elixir cluster, and a scary story from the past! Learn about :global for registering unique processes in a cluster, and where using it can go horribly wrong…

---

## [Erlang\_python - Run Python across your Elixir cluster](https://forum.elixirforum.com/t/erlang-python-run-python-across-your-elixir-cluster/74613)

<div class="topic-metadata">

**Author:** [@benoitc](https://forum.elixirforum.com/u/benoitc)\
**Replies:** 6\
**Last updated:** [March 12, 2026, 10:42pm UTC](https://forum.elixirforum.com/t/erlang-python-run-python-across-your-elixir-cluster/74613 "2026-03-12T22:42:34Z")

</div>

Because it runs on the BEAM, you inherit Erlang/Elixir distribution for free. Run Python on any node: # Execute on remote node :rpc.call(:"worker@host", :py, :call, \[:numpy, :dot, \[matrix\_a, matrix\_b\]\]) # Local call {…

---

## [EasyRpc - A simple way to call rpc in Elixir cluster](https://forum.elixirforum.com/t/easyrpc-a-simple-way-to-call-rpc-in-elixir-cluster/70106)

<div class="topic-metadata">

**Author:** [@manhvu](https://forum.elixirforum.com/u/manhvu)\
**Replies:** 8\
**Last updated:** [March 11, 2026, 1:32am UTC](https://forum.elixirforum.com/t/easyrpc-a-simple-way-to-call-rpc-in-elixir-cluster/70106 "2026-03-11T01:32:41Z")

</div>

Intro EasyRpc for easy to wrap a remote function (rpc) to local module for convenience. Dev just to need add config for target nodes (or use {Module, :function, args} for get nodes in runtime) and add functions want to w…

---

## [My app does not pick up the changed hostname on my VPS](https://forum.elixirforum.com/t/my-app-does-not-pick-up-the-changed-hostname-on-my-vps/37055)

<div class="topic-metadata">

**Author:** [@jdj\_dk](https://forum.elixirforum.com/u/jdj_dk)\
**Replies:** 19\
**Last updated:** [October 12, 2025, 1:04pm UTC](https://forum.elixirforum.com/t/my-app-does-not-pick-up-the-changed-hostname-on-my-vps/37055 "2025-10-12T13:04:17Z")

</div>

Hi everyone. I’m trying to setup a small cluster with three nodes. I’m using libcluster as I have before. But my nodes doesn’t have a usable hostname. The VPS came with a hostname like this: ip-123-123-123-123. I’ve cha…

---

## [Cluster erlang nodes without DNS and FQDN](https://forum.elixirforum.com/t/cluster-erlang-nodes-without-dns-and-fqdn/72279)

<div class="topic-metadata">

**Author:** [@sks](https://forum.elixirforum.com/u/sks)\
**Replies:** 4\
**Last updated:** [September 10, 2025, 3:51am UTC](https://forum.elixirforum.com/t/cluster-erlang-nodes-without-dns-and-fqdn/72279 "2025-09-10T03:51:01Z")

</div>

I have create a Elixir Phoenix Project that is to be run on bare metal physical servers (one node per physical server) in a LAN setup. I am using Elixir mainly for fault tolerance. I am exporting my application using m…

---

## [Mnesia with dynamic node list via fly.io](https://forum.elixirforum.com/t/mnesia-with-dynamic-node-list-via-fly-io/72418)

<div class="topic-metadata">

**Author:** [@gpreston](https://forum.elixirforum.com/u/gpreston)\
**Replies:** 0\
**Last updated:** [September 8, 2025, 12:35pm UTC](https://forum.elixirforum.com/t/mnesia-with-dynamic-node-list-via-fly-io/72418 "2025-09-08T12:35:29Z")

</div>

Hi all, I’m having trouble on the final mile of solving a problem using Mnesia. The use cases details are: I have multiple nodes that each track some local in-memory state (for me these are specifically streams, so I w…

---

## [Telemetry/PromEx metrics in a cluster](https://forum.elixirforum.com/t/telemetry-promex-metrics-in-a-cluster/70671)

<div class="topic-metadata">

**Author:** [@kerryb](https://forum.elixirforum.com/u/kerryb)\
**Replies:** 5\
**Last updated:** [May 15, 2025, 2:37pm UTC](https://forum.elixirforum.com/t/telemetry-promex-metrics-in-a-cluster/70671 "2025-05-15T14:37:30Z")

</div>

Sorry if this is a daft question, but I can’t seem to find any documentation that answers my question … We’re in the process of migrating a Phoenix application from a single node to an OTP cluster. Almost everything is …

---

## [ClusterHelper - Library map role of nodes to node's name for building a dynamic Elixir cluster on K8s](https://forum.elixirforum.com/t/clusterhelper-library-map-role-of-nodes-to-nodes-name-for-building-a-dynamic-elixir-cluster-on-k8s/70107)

<div class="topic-metadata">

**Author:** [@manhvu](https://forum.elixirforum.com/u/manhvu)\
**Replies:** 0\
**Last updated:** [March 24, 2025, 6:20am UTC](https://forum.elixirforum.com/t/clusterhelper-library-map-role-of-nodes-to-nodes-name-for-building-a-dynamic-elixir-cluster-on-k8s/70107 "2025-03-24T06:20:42Z")

</div>

ClusterHelper work like a registry for mapping a role(or Id if needed) to node name of Elixir for call rpc or do other things inside cluster. The library is built on top of :syn lib. Roles of each node will be synced & …

---

## [Connecting Livebook to a node on a remote docker container](https://forum.elixirforum.com/t/connecting-livebook-to-a-node-on-a-remote-docker-container/66820)

<div class="topic-metadata">

**Author:** [@k-p](https://forum.elixirforum.com/u/k-p)\
**Replies:** 10\
**Last updated:** [February 9, 2025, 2:58pm UTC](https://forum.elixirforum.com/t/connecting-livebook-to-a-node-on-a-remote-docker-container/66820 "2025-02-09T14:58:37Z")

</div>

I have an Elixir app running on a remote server using Dokku. I’d like to connect to it from my local machine using Livebooks, via a SSH tunnel. I can’t seem to make the remote container visible to my local Livebook. I’…

---

## [Are there any existing tools that monitor and visualise clusters?](https://forum.elixirforum.com/t/are-there-any-existing-tools-that-monitor-and-visualise-clusters/67919)

<div class="topic-metadata">

**Author:** [@herman](https://forum.elixirforum.com/u/herman)\
**Replies:** 8\
**Last updated:** [December 6, 2024, 10:35am UTC](https://forum.elixirforum.com/t/are-there-any-existing-tools-that-monitor-and-visualise-clusters/67919 "2024-12-06T10:35:26Z")

</div>

We currently have our elixir apps deployed with kubernetes using libcluster. I’ve identified some funny behaviours that I can confirm is related to nodes connecting to the cluster and other issues related to how we’ve s…

---

## [Testing channels in local cluster](https://forum.elixirforum.com/t/testing-channels-in-local-cluster/67693)

<div class="topic-metadata">

**Author:** [@jaybe78](https://forum.elixirforum.com/u/jaybe78)\
**Replies:** 0\
**Last updated:** [November 26, 2024, 12:29am UTC](https://forum.elixirforum.com/t/testing-channels-in-local-cluster/67693 "2024-11-26T00:29:56Z")

</div>

Hello, I’m trying to test channels in a cluster of nodes using local-cluster. Though it does not work when joining channel from the created nodes. It fails with: socket/1-3 can only be invoked from the test process …

---

## [Remote execution Smart cell without EPMD](https://forum.elixirforum.com/t/remote-execution-smart-cell-without-epmd/67045)

<div class="topic-metadata">

**Author:** [@Hermanverschooten](https://forum.elixirforum.com/u/Hermanverschooten)\
**Replies:** 4\
**Last updated:** [October 28, 2024, 4:56pm UTC](https://forum.elixirforum.com/t/remote-execution-smart-cell-without-epmd/67045 "2024-10-28T16:56:43Z")

</div>

Hi, I have an app running that uses nbpm to avoid using epmd in production. Using the supplied mix task I find which port my app is running on. I have added export ELIXIR\_ERL\_OPTIONS="-erl\_epmd\_port nnn" to my .livebo…

---

## [Spreading out genservers on hosts of different flavour](https://forum.elixirforum.com/t/spreading-out-genservers-on-hosts-of-different-flavour/67052)

<div class="topic-metadata">

**Author:** [@markusgod](https://forum.elixirforum.com/u/markusgod)\
**Replies:** 4\
**Last updated:** [October 28, 2024, 3:43pm UTC](https://forum.elixirforum.com/t/spreading-out-genservers-on-hosts-of-different-flavour/67052 "2024-10-28T15:43:22Z")

</div>

I was reading Discord’s engineering write-ups, and while the fanout of Sessions and Guilds seems straightforward at a high level, I am now curious about some details. Since they are running BEAM VM instances and using a …

---

## [Notify origin of messages on :peer nodes in distributed tests](https://forum.elixirforum.com/t/notify-origin-of-messages-on-peer-nodes-in-distributed-tests/62798)

<div class="topic-metadata">

**Author:** [@enewbury](https://forum.elixirforum.com/u/enewbury)\
**Replies:** 0\
**Last updated:** [April 9, 2024, 3:39pm UTC](https://forum.elixirforum.com/t/notify-origin-of-messages-on-peer-nodes-in-distributed-tests/62798 "2024-04-09T15:39:21Z")

</div>

It seems the latest and greatest way to write distributed tests in elixir and erlang is to use the :peer module with the connection: :standard\_io since this allows you to spin up peers and communicate with them via stand…

---

## [DNSSRVCluster - Elixir clustering with DNS SRV records](https://forum.elixirforum.com/t/dnssrvcluster-elixir-clustering-with-dns-srv-records/59529)

<div class="topic-metadata">

**Author:** [@pertsevds](https://forum.elixirforum.com/u/pertsevds)\
**Replies:** 1\
**Last updated:** [March 30, 2024, 7:37pm UTC](https://forum.elixirforum.com/t/dnssrvcluster-elixir-clustering-with-dns-srv-records/59529 "2024-03-30T19:37:50Z")

</div>

After @chrismccord released GitHub - phoenixframework/dns\_cluster: Simple DNS clustering for distributed Elixir nodes · GitHub, I tried to use it but did not get on with it. Because Elixir/Erlang distribution by default …

---

## [Absinthe + Dataloader with clustered microservices](https://forum.elixirforum.com/t/absinthe-dataloader-with-clustered-microservices/62241)

<div class="topic-metadata">

**Author:** [@a\_smooth\_avocado](https://forum.elixirforum.com/u/a_smooth_avocado)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 8:12pm UTC](https://forum.elixirforum.com/t/absinthe-dataloader-with-clustered-microservices/62241 "2024-03-29T20:12:17Z")

</div>

Hi everyone! I’m planning to develop a microservices-oriented architecture where my Kubernetes (k8s) cluster will support different nodes: an API gateway, authentication (auth), and application (app) services. These wil…

---

## [Horde (and other dist. super.): Managing module versions](https://forum.elixirforum.com/t/horde-and-other-dist-super-managing-module-versions/61555)

<div class="topic-metadata">

**Author:** [@gavid](https://forum.elixirforum.com/u/gavid)\
**Replies:** 4\
**Last updated:** [February 11, 2024, 1:09pm UTC](https://forum.elixirforum.com/t/horde-and-other-dist-super-managing-module-versions/61555 "2024-02-11T13:09:44Z")

</div>

(This question is phrased in an abstract way, because it seems to me to be a general problem. But I can create a small example on request.) So with Horde, a supervised process can be restarted on any node. Say I have a…

---

## [Elixir-desktop as part of a cluster?](https://forum.elixirforum.com/t/elixir-desktop-as-part-of-a-cluster/60884)

<div class="topic-metadata">

**Author:** [@nduitz](https://forum.elixirforum.com/u/nduitz)\
**Replies:** 8\
**Last updated:** [January 12, 2024, 11:14pm UTC](https://forum.elixirforum.com/t/elixir-desktop-as-part-of-a-cluster/60884 "2024-01-12T23:14:19Z")

</div>

Hey Folks, I was very excited to learn about elixir-desktop. Thanks for your work :slight\_smile: So I was wondering if elixir-desktop could be used to more easily implement a webapp that also runs on desktop and has so…

---

## [Run a function on each node in the cluster](https://forum.elixirforum.com/t/run-a-function-on-each-node-in-the-cluster/44840)

<div class="topic-metadata">

**Author:** [@justinbkay](https://forum.elixirforum.com/u/justinbkay)\
**Replies:** 7\
**Last updated:** [January 7, 2024, 8:21am UTC](https://forum.elixirforum.com/t/run-a-function-on-each-node-in-the-cluster/44840 "2024-01-07T08:21:49Z")

</div>

Hi, I have a small cluster of Elixir nodes and I want to run a function on each node in the cluster and display the output on a liveview page. How’s the best way to go about running the function on each node in Node.li…

---

## [Any info about pattern or anti-pattern for designing cluster system?](https://forum.elixirforum.com/t/any-info-about-pattern-or-anti-pattern-for-designing-cluster-system/59806)

<div class="topic-metadata">

**Author:** [@kusokuzeshiki](https://forum.elixirforum.com/u/kusokuzeshiki)\
**Replies:** 0\
**Last updated:** [November 17, 2023, 10:11pm UTC](https://forum.elixirforum.com/t/any-info-about-pattern-or-anti-pattern-for-designing-cluster-system/59806 "2023-11-17T22:11:19Z")

</div>

I’m reading chapter12 of elixir in action 3rd now. This chapter is talking about distributed system. I wanna know the pattern or anti-pattern for designing cluster system further if there is. Teach me if you know any a…

---

## [What is the best way of running a Phoenix server in cluster mode in AWS ECS?](https://forum.elixirforum.com/t/what-is-the-best-way-of-running-a-phoenix-server-in-cluster-mode-in-aws-ecs/45658)

<div class="topic-metadata">

**Author:** [@ddoronin](https://forum.elixirforum.com/u/ddoronin)\
**Replies:** 7\
**Last updated:** [June 26, 2023, 2:59pm UTC](https://forum.elixirforum.com/t/what-is-the-best-way-of-running-a-phoenix-server-in-cluster-mode-in-aws-ecs/45658 "2023-06-26T14:59:37Z")

</div>

What is the best way of running a Phoenix server in cluster mode in AWS ECS? It seems to me like a common problem. I plan to use a libcluster library, but I’m wondering if Phoenix provides anything out of the box. Also…

---

## [Elector - leader node election](https://forum.elixirforum.com/t/elector-leader-node-election/54869)

<div class="topic-metadata">

**Author:** [@anuaralfetahe](https://forum.elixirforum.com/u/anuaralfetahe)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 10:41am UTC](https://forum.elixirforum.com/t/elector-leader-node-election/54869 "2023-03-28T10:41:19Z")

</div>

Hello, I decided to split my larger project into smaller libraries. As a result, I have released the first library written in Erlang called Elector. Elector is a library that automatically selects the leader node from a…

---

## [Node discovery and connecting many clients to specific application nodes](https://forum.elixirforum.com/t/node-discovery-and-connecting-many-clients-to-specific-application-nodes/54532)

<div class="topic-metadata">

**Author:** [@samfrench](https://forum.elixirforum.com/u/samfrench)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 11:08am UTC](https://forum.elixirforum.com/t/node-discovery-and-connecting-many-clients-to-specific-application-nodes/54532 "2023-03-13T11:08:20Z")

</div>

We are reviewing our application architecture and wonder if there are recommendations or guidance on how we should connect the distributed nodes. We have a lot of client applications which connect to a separate node to …

---

## [How to control cluster topology for pub/sub project](https://forum.elixirforum.com/t/how-to-control-cluster-topology-for-pub-sub-project/52222)

<div class="topic-metadata">

**Author:** [@Denny](https://forum.elixirforum.com/u/Denny)\
**Replies:** 2\
**Last updated:** [December 6, 2022, 6:10pm UTC](https://forum.elixirforum.com/t/how-to-control-cluster-topology-for-pub-sub-project/52222 "2022-12-06T18:10:01Z")

</div>

Hi everyone, I am starting work on a project where I have 1..50 devices that collect data, share the data internally using pub/sub, but also need to share up to a master device. Each node connects to the master at start…

---

## [Microservices intercommunication using a cluster instead of gRPC or REST](https://forum.elixirforum.com/t/microservices-intercommunication-using-a-cluster-instead-of-grpc-or-rest/40439)

<div class="topic-metadata">

**Author:** [@RooSoft](https://forum.elixirforum.com/u/RooSoft)\
**Replies:** 5\
**Last updated:** [June 15, 2021, 3:22pm UTC](https://forum.elixirforum.com/t/microservices-intercommunication-using-a-cluster-instead-of-grpc-or-rest/40439 "2021-06-15T15:22:38Z")

</div>

Let’s assume we have a set of microservices running in containers, communicating in gRPC or REST. Am I right to think that, as long as they’re all coded in Elixir, making a cluster out of these services could potentiall…

---

## [Best way to generate sequential ids](https://forum.elixirforum.com/t/best-way-to-generate-sequential-ids/33241)

<div class="topic-metadata">

**Author:** [@emoragaf](https://forum.elixirforum.com/u/emoragaf)\
**Replies:** 14\
**Last updated:** [June 2, 2021, 4:24am UTC](https://forum.elixirforum.com/t/best-way-to-generate-sequential-ids/33241 "2021-06-02T04:24:17Z")

</div>

Hello, we have this situation right now: Every time we make a sale we need to emit a document with a unique and sequential document number. These numbers belong to a sequence based on the product sold (each document is…

---

## [Is Node.list or :erlang.nodes expensive?](https://forum.elixirforum.com/t/is-node-list-or-erlang-nodes-expensive/39988)

<div class="topic-metadata">

**Author:** [@rogerweb](https://forum.elixirforum.com/u/rogerweb)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 5:58pm UTC](https://forum.elixirforum.com/t/is-node-list-or-erlang-nodes-expensive/39988 "2021-05-25T17:58:43Z")

</div>

Hi, I have a simple Elixir module with a public set of functions that must behave differently depending on whether the node is connected or not to an specific remote node. Example: def get\_agents do if connected\_…

---

## [Discover node running application in Cluster](https://forum.elixirforum.com/t/discover-node-running-application-in-cluster/39848)

<div class="topic-metadata">

**Author:** [@larshei](https://forum.elixirforum.com/u/larshei)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 1:37pm UTC](https://forum.elixirforum.com/t/discover-node-running-application-in-cluster/39848 "2021-05-20T13:37:50Z")

</div>

In a small Elixir/Erlang cluster with nodes that run different applications, what would be a good way to “discover which of the nodes runs application X”? I am very sure this is possible, but nothing I read digging thro…

---

## [How to handle I global processes in blue-green deployments](https://forum.elixirforum.com/t/how-to-handle-i-global-processes-in-blue-green-deployments/39124)

<div class="topic-metadata">

**Author:** [@askasp](https://forum.elixirforum.com/u/askasp)\
**Replies:** 0\
**Last updated:** [April 21, 2021, 10:50am UTC](https://forum.elixirforum.com/t/how-to-handle-i-global-processes-in-blue-green-deployments/39124 "2021-04-21T10:50:22Z")

</div>

I have a global process in an elixir cluster. It subscribes to EventStore, and it is global as I do not want the event to be received by multiple nodes. However, we are considering using blue-green deployments in the …

---

## [Should I use Redis or a global GenServer for data between applications?](https://forum.elixirforum.com/t/should-i-use-redis-or-a-global-genserver-for-data-between-applications/38246)

<div class="topic-metadata">

**Author:** [@ZastrixArundell](https://forum.elixirforum.com/u/ZastrixArundell)\
**Replies:** 6\
**Last updated:** [March 18, 2021, 6:25pm UTC](https://forum.elixirforum.com/t/should-i-use-redis-or-a-global-genserver-for-data-between-applications/38246 "2021-03-18T18:25:56Z")

</div>

I think the title says it all, but let me write a bit of an explanation. Say I have an app A which does some work and it hosted on one machine. App B is a phoenix application which is the user dashboard, etc. and is ran…

[Next page](https://forum.elixirforum.com/tag/cluster/646.md?match_all_tags=true&page=1&tags%5B%5D=cluster)
