# \#libcluster

**URL:** https://forum.elixirforum.com/tag/libcluster/1353.md

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

---

## [Running into challenges with nodes discovering each other and maintaining cluster stability using Libcluster on Kubernetes](https://forum.elixirforum.com/t/running-into-challenges-with-nodes-discovering-each-other-and-maintaining-cluster-stability-using-libcluster-on-kubernetes/74107)

<div class="topic-metadata">

**Author:** [@mik284](https://forum.elixirforum.com/u/mik284)\
**Replies:** 8\
**Last updated:** [February 4, 2026, 10:41am UTC](https://forum.elixirforum.com/t/running-into-challenges-with-nodes-discovering-each-other-and-maintaining-cluster-stability-using-libcluster-on-kubernetes/74107 "2026-02-04T10:41:49Z")

</div>

Hi everyone, Am trying to set up node clustering for my Elixir app using Libcluster on Kubernetes (hosted on DigitalOcean). I am running into some challenges with nodes discovering each other and maintaining cluster sta…

---

## [Relying on :erpc for networked nodes](https://forum.elixirforum.com/t/relying-on-erpc-for-networked-nodes/60937)

<div class="topic-metadata">

**Author:** [@drewble](https://forum.elixirforum.com/u/drewble)\
**Replies:** 8\
**Last updated:** [September 24, 2025, 8:45am UTC](https://forum.elixirforum.com/t/relying-on-erpc-for-networked-nodes/60937 "2025-09-24T08:45:35Z")

</div>

With several Phoenix apps clustered with libcluster, it’s easy to make calls to remote nodes via :erpc. Say I have two different public-facing apps, and one needs to fetch data from the other to serve requests. Is it a …

---

## [Clustered LiveView app web socket](https://forum.elixirforum.com/t/clustered-liveview-app-web-socket/71933)

<div class="topic-metadata">

**Author:** [@MarthinL](https://forum.elixirforum.com/u/MarthinL)\
**Replies:** 28\
**Last updated:** [August 14, 2025, 4:47pm UTC](https://forum.elixirforum.com/t/clustered-liveview-app-web-socket/71933 "2025-08-14T16:47:30Z")

</div>

Pardon the dumb question, but when the LiveView JavaScript establishes its web socket (apparently by upgrading the regular HTTP GET request of the /live endpoint to a bi-directional TCP socket), how does data sent to the…

---

## [Libcluster Postgres - Clustering Strategy for Libcluster](https://forum.elixirforum.com/t/libcluster-postgres-clustering-strategy-for-libcluster/60053)

<div class="topic-metadata">

**Author:** [@ziinc](https://forum.elixirforum.com/u/ziinc)\
**Replies:** 8\
**Last updated:** [July 2, 2025, 6:28pm UTC](https://forum.elixirforum.com/t/libcluster-postgres-clustering-strategy-for-libcluster/60053 "2025-07-02T18:28:11Z")

</div>

Hi, my colleagues and I at Supabase have worked on libcluster\_postgres, a libcluster custom strategy that utilizes PostgreSQL LISTEN and NOTIFY to handle dynamic clustering. This library came out of a requirement for a m…

---

## [Distributed cluster with libcluster and gossip protocol](https://forum.elixirforum.com/t/distributed-cluster-with-libcluster-and-gossip-protocol/67237)

<div class="topic-metadata">

**Author:** [@krisleech](https://forum.elixirforum.com/u/krisleech)\
**Replies:** 12\
**Last updated:** [June 11, 2025, 1:48pm UTC](https://forum.elixirforum.com/t/distributed-cluster-with-libcluster-and-gossip-protocol/67237 "2025-06-11T13:48:49Z")

</div>

We are deploying an Elixir application to production for the first time (first ever Elixir app for me :tada:) and realised that we need to cluster the nodes because things like Quantum will run on every instance, with a …

---

## [Ditributed cluster: up to how many nodes we can scale using a library like libcluster?](https://forum.elixirforum.com/t/ditributed-cluster-up-to-how-many-nodes-we-can-scale-using-a-library-like-libcluster/71196)

<div class="topic-metadata">

**Author:** [@jaybe78](https://forum.elixirforum.com/u/jaybe78)\
**Replies:** 10\
**Last updated:** [June 10, 2025, 4:49pm UTC](https://forum.elixirforum.com/t/ditributed-cluster-up-to-how-many-nodes-we-can-scale-using-a-library-like-libcluster/71196 "2025-06-10T16:49:11Z")

</div>

Hello, I would like to know up to how many nodes max we can run a distributed app with a simple libray like libcluster ? I read somewhere that after 40/50 nodes, you can start having issues like loss of messages and it…

---

## [How to connect nodes in Kubernetes before application startup?](https://forum.elixirforum.com/t/how-to-connect-nodes-in-kubernetes-before-application-startup/65877)

<div class="topic-metadata">

**Author:** [@janp](https://forum.elixirforum.com/u/janp)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 7:29am UTC](https://forum.elixirforum.com/t/how-to-connect-nodes-in-kubernetes-before-application-startup/65877 "2024-09-05T07:29:10Z")

</div>

I am wondering whether it is possible to use distributed Erlang plus libcluster in kubernetes? :thinking: I tried it with the following setup: StatefulSet (with 3 replicas) example@example-0.example-headless.default.…

---

## [Adding node to Libcluster not working](https://forum.elixirforum.com/t/adding-node-to-libcluster-not-working/61647)

<div class="topic-metadata">

**Author:** [@justinbkay](https://forum.elixirforum.com/u/justinbkay)\
**Replies:** 2\
**Last updated:** [February 14, 2024, 4:31pm UTC](https://forum.elixirforum.com/t/adding-node-to-libcluster-not-working/61647 "2024-02-14T16:31:07Z")

</div>

I currently have an Elixir App running in EC2. It runs on 3 Intel Instances and it is a Phoenix App fwiw. I’m attempting to add a 4th server which is ARM based and the newer AL2023 distribution. The issue is that the …

---

## [Creating a cluster with libcluster and Kubernetes](https://forum.elixirforum.com/t/creating-a-cluster-with-libcluster-and-kubernetes/60544)

<div class="topic-metadata">

**Author:** [@julismz](https://forum.elixirforum.com/u/julismz)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 5:47pm UTC](https://forum.elixirforum.com/t/creating-a-cluster-with-libcluster-and-kubernetes/60544 "2024-01-03T17:47:16Z")

</div>

I’m having problems creating a cluster with libcluster and K8S… The error I’m having is: \`\[warning\] \[libcluster:k8s\] unable to connect to :"foo@10.244.2.106": not part of network These are my kubernetes configs: apiV…

---

## [Trying to understand OTP apps a little better and distribution](https://forum.elixirforum.com/t/trying-to-understand-otp-apps-a-little-better-and-distribution/57665)

<div class="topic-metadata">

**Author:** [@polypush135](https://forum.elixirforum.com/u/polypush135)\
**Replies:** 4\
**Last updated:** [August 16, 2023, 10:15pm UTC](https://forum.elixirforum.com/t/trying-to-understand-otp-apps-a-little-better-and-distribution/57665 "2023-08-16T22:15:52Z")

</div>

I was thinking: What if I could abstract some of my otp applications from in my phoenix app and move them to another server? I got this idea because I wanted to see if I could not put one of my 3 free 256mb VMs from…

---

## [Deployment process with load balancer, mix release, multiple nodes, and distributed elixir](https://forum.elixirforum.com/t/deployment-process-with-load-balancer-mix-release-multiple-nodes-and-distributed-elixir/57448)

<div class="topic-metadata">

**Author:** [@duntonr](https://forum.elixirforum.com/u/duntonr)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 1:45pm UTC](https://forum.elixirforum.com/t/deployment-process-with-load-balancer-mix-release-multiple-nodes-and-distributed-elixir/57448 "2023-08-05T13:45:13Z")

</div>

We have a Elixir Phoenix application currently deployed in a highly available configuration on AWS. We use a application load balancer (layer 7) backed by 2+ individual EC2 instances (that are all members of an auto-sca…

---

## [Why are children not given to the start argument in \`mix.exs\`?](https://forum.elixirforum.com/t/why-are-children-not-given-to-the-start-argument-in-mix-exs/56646)

<div class="topic-metadata">

**Author:** [@jbcaprell](https://forum.elixirforum.com/u/jbcaprell)\
**Replies:** 3\
**Last updated:** [June 23, 2023, 11:20am UTC](https://forum.elixirforum.com/t/why-are-children-not-given-to-the-start-argument-in-mix-exs/56646 "2023-06-23T11:20:37Z")

</div>

The application/0 definition in a typical mix.exs file has an essential shape like this: def application() do \[mod: {MyApp, \[\]}\] end … where a tuple is given to the key :mod containing the application callback module…

---

## [Distributed Elixir on AWS Fargate](https://forum.elixirforum.com/t/distributed-elixir-on-aws-fargate/28487)

<div class="topic-metadata">

**Author:** [@egze](https://forum.elixirforum.com/u/egze)\
**Replies:** 5\
**Last updated:** [March 12, 2023, 2:56pm UTC](https://forum.elixirforum.com/t/distributed-elixir-on-aws-fargate/28487 "2023-03-12T14:56:06Z")

</div>

Can you please share your setup if you are running a cluster in Fargate? Our DevOps are trying their best to have a setup in Fargate for our new Elixir app, but it‘s hard. What I want as a developer is node discovery an…

---

## [Libcluster on render.com -- lookup against \*-discovery failed nxdomain](https://forum.elixirforum.com/t/libcluster-on-render-com-lookup-against-discovery-failed-nxdomain/53767)

<div class="topic-metadata">

**Author:** [@ian-darby](https://forum.elixirforum.com/u/ian-darby)\
**Replies:** 4\
**Last updated:** [February 16, 2023, 9:58pm UTC](https://forum.elixirforum.com/t/libcluster-on-render-com-lookup-against-discovery-failed-nxdomain/53767 "2023-02-16T21:58:47Z")

</div>

Has anyone successfully deployed a clustered Phoenix 1.7 app on render.com recently? I’m having trouble getting it working and their support hasn’t responded any of the channels I’ve used to try and get help. Here’s my …

---

## [Libcluster - is there a way to use the discovery strategies in docker-compose only?](https://forum.elixirforum.com/t/libcluster-is-there-a-way-to-use-the-discovery-strategies-in-docker-compose-only/52858)

<div class="topic-metadata">

**Author:** [@newton-peixoto](https://forum.elixirforum.com/u/newton-peixoto)\
**Replies:** 2\
**Last updated:** [December 31, 2022, 2:38am UTC](https://forum.elixirforum.com/t/libcluster-is-there-a-way-to-use-the-discovery-strategies-in-docker-compose-only/52858 "2022-12-31T02:38:35Z")

</div>

Is there a way to use the discovery strategies in docker-compose only? without docker swarm? I’m trying to set a application with docker-compose so de devs could develop a distributed application without having to have a…

---

## [Libcluster on render.com: node() returns nonode@nohost](https://forum.elixirforum.com/t/libcluster-on-render-com-node-returns-nonode-nohost/52387)

<div class="topic-metadata">

**Author:** [@hectorperez](https://forum.elixirforum.com/u/hectorperez)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 10:34am UTC](https://forum.elixirforum.com/t/libcluster-on-render-com-node-returns-nonode-nohost/52387 "2022-12-15T10:34:36Z")

</div>

Hi all, After adding libcluster to my phoenix app with two instances, node() returns nonode@nohost and List.node() returns \[\]. \[1\] states that Render creates nodes with names like elixir-cluster-demo@10.200.30.4, but I…

---

## [Anyone managed to connect mnesia on two machines with libcluster and gossip strategy?](https://forum.elixirforum.com/t/anyone-managed-to-connect-mnesia-on-two-machines-with-libcluster-and-gossip-strategy/35220)

<div class="topic-metadata">

**Author:** [@KamilLelonek](https://forum.elixirforum.com/u/KamilLelonek)\
**Replies:** 3\
**Last updated:** [May 6, 2022, 12:37am UTC](https://forum.elixirforum.com/t/anyone-managed-to-connect-mnesia-on-two-machines-with-libcluster-and-gossip-strategy/35220 "2022-05-06T00:37:47Z")

</div>

Has anyone managed to connect mnesia on two machines with libcluster and gossip strategy?

---

## [Libcluster mixing/ interop with python erlang nodes](https://forum.elixirforum.com/t/libcluster-mixing-interop-with-python-erlang-nodes/42410)

<div class="topic-metadata">

**Author:** [@macrocreation](https://forum.elixirforum.com/u/macrocreation)\
**Replies:** 0\
**Last updated:** [September 16, 2021, 10:52am UTC](https://forum.elixirforum.com/t/libcluster-mixing-interop-with-python-erlang-nodes/42410 "2021-09-16T10:52:24Z")

</div>

Hi All, I have a mix of nodes that are python nodes as well as elixir nodes spread across a lan. Some of the python nodes co-exist on the same host as the elixir nodes. Right now the process of connection is manual and…

---

## [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…

---

## [Need help: Super basic libcluster example using docker](https://forum.elixirforum.com/t/need-help-super-basic-libcluster-example-using-docker/39323)

<div class="topic-metadata">

**Author:** [@polypush135](https://forum.elixirforum.com/u/polypush135)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 7:03pm UTC](https://forum.elixirforum.com/t/need-help-super-basic-libcluster-example-using-docker/39323 "2021-04-30T19:03:27Z")

</div>

I’m trying to stand up a very basic example of distributed elixir using docker and epmd. I chose to use libcluster and followed the readme with the example of the two nodes a@127.0.0.1 and b@127.0.0.1 Heres the app in …

---

## [Running different instances of one application on multiple ports using libcluster](https://forum.elixirforum.com/t/running-different-instances-of-one-application-on-multiple-ports-using-libcluster/31133)

<div class="topic-metadata">

**Author:** [@din\_S](https://forum.elixirforum.com/u/din_S)\
**Replies:** 6\
**Last updated:** [April 22, 2021, 8:42am UTC](https://forum.elixirforum.com/t/running-different-instances-of-one-application-on-multiple-ports-using-libcluster/31133 "2021-04-22T08:42:01Z")

</div>

I want to run different instances of the same app (not copies of the same app) on the same server (clustering) using different ports, so I used libcluster library and did the following (in application.ex): def start(\_ty…

---

## [How to start a cluster of nodes with Phoenix and Libcluster](https://forum.elixirforum.com/t/how-to-start-a-cluster-of-nodes-with-phoenix-and-libcluster/38341)

<div class="topic-metadata">

**Author:** [@samtechie](https://forum.elixirforum.com/u/samtechie)\
**Replies:** 7\
**Last updated:** [March 24, 2021, 6:28am UTC](https://forum.elixirforum.com/t/how-to-start-a-cluster-of-nodes-with-phoenix-and-libcluster/38341 "2021-03-24T06:28:51Z")

</div>

Am totally new to Libcluster but I want to start two phoenix app instances on my local machine in dev mode. So this is what I have done so far based on the libcluster documentation. This is my application.ex. def start…

---

## [Scaling/Federating cluster(s) at planetary scale](https://forum.elixirforum.com/t/scaling-federating-cluster-s-at-planetary-scale/38028)

<div class="topic-metadata">

**Author:** [@brandonpollack23](https://forum.elixirforum.com/u/brandonpollack23)\
**Replies:** 6\
**Last updated:** [March 8, 2021, 8:51pm UTC](https://forum.elixirforum.com/t/scaling-federating-cluster-s-at-planetary-scale/38028 "2021-03-08T20:51:07Z")

</div>

So I’m new to elixir and currently work for one of those large tech firms. I know for a personal project I would never have to do this, but with those large tech firms’ scale in mind I’ve come up with a puzzle and I jus…

---

## [Are you using a clustered Elixir deployment?](https://forum.elixirforum.com/t/are-you-using-a-clustered-elixir-deployment/32988)

<div class="topic-metadata">

**Author:** [@opsb](https://forum.elixirforum.com/u/opsb)\
**Replies:** 16\
**Last updated:** [September 10, 2020, 7:31am UTC](https://forum.elixirforum.com/t/are-you-using-a-clustered-elixir-deployment/32988 "2020-09-10T07:31:06Z")

</div>

We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is running in Fargate with two different task types, one for web and one for background jo…

---

## [How to create a distributed and loadbalanced system?](https://forum.elixirforum.com/t/how-to-create-a-distributed-and-loadbalanced-system/31442)

<div class="topic-metadata">

**Author:** [@thamurath](https://forum.elixirforum.com/u/thamurath)\
**Replies:** 8\
**Last updated:** [May 13, 2020, 7:04pm UTC](https://forum.elixirforum.com/t/how-to-create-a-distributed-and-loadbalanced-system/31442 "2020-05-13T19:04:22Z")

</div>

I am new to Elixir and was wondering how to deploy a distributed and load balanced system. I mean: I have in mind a service based architecture, so to say, where each app offers a service the the system. There could be…

---

## [Classification of a nodes in a cluster?](https://forum.elixirforum.com/t/classification-of-a-nodes-in-a-cluster/30073)

<div class="topic-metadata">

**Author:** [@mindreader](https://forum.elixirforum.com/u/mindreader)\
**Replies:** 9\
**Last updated:** [March 25, 2020, 6:38pm UTC](https://forum.elixirforum.com/t/classification-of-a-nodes-in-a-cluster/30073 "2020-03-25T18:38:06Z")

</div>

We currently have a monolith where I work, on kubernetes. We are using libcluster to get the nodes the mesh together, and up until now, there has only been one type of node that has every possible dependency and library…

---

## [Demo of distributed Elixir with libcluster and DNS](https://forum.elixirforum.com/t/demo-of-distributed-elixir-with-libcluster-and-dns/28004)

<div class="topic-metadata">

**Author:** [@egze](https://forum.elixirforum.com/u/egze)\
**Replies:** 0\
**Last updated:** [January 4, 2020, 6:30pm UTC](https://forum.elixirforum.com/t/demo-of-distributed-elixir-with-libcluster-and-dns/28004 "2020-01-04T18:30:56Z")

</div>

I was preparing to deploy a production application to AWS Fargate, and to practice I wanted to play with DNS polling and node discovery on localhost. Here is the demo project that I was using: Aleksandr Lossenko / phx\_c…

---

## [HashRing and Swarm and SGP, oh my](https://forum.elixirforum.com/t/hashring-and-swarm-and-sgp-oh-my/26362)

<div class="topic-metadata">

**Author:** [@Cadamis](https://forum.elixirforum.com/u/Cadamis)\
**Replies:** 2\
**Last updated:** [October 26, 2019, 2:53pm UTC](https://forum.elixirforum.com/t/hashring-and-swarm-and-sgp-oh-my/26362 "2019-10-26T14:53:52Z")

</div>

I have a use case here at work that seems like a great fit for a Single Global Process, but (as Chris Keathley points out) actually putting together an SGP system with data consistency and resiliency is very tricky. I kn…

---

## [What is an easy way to form a dynamic cluster?](https://forum.elixirforum.com/t/what-is-an-easy-way-to-form-a-dynamic-cluster/24910)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 4:39pm UTC](https://forum.elixirforum.com/t/what-is-an-easy-way-to-form-a-dynamic-cluster/24910 "2019-08-26T16:39:40Z")

</div>

Is there an easy way to form a BEAM cluster with dynamic membership? Specifically I want to form the cluster from multiple instances of the same escript/program, this means that the name of each node needs to be unique, …

---

## [Clustering in Elixir 1.9 with Mix Releases and libcluster](https://forum.elixirforum.com/t/clustering-in-elixir-1-9-with-mix-releases-and-libcluster/24337)

<div class="topic-metadata">

**Author:** [@anuragg](https://forum.elixirforum.com/u/anuragg)\
**Replies:** 2\
**Last updated:** [August 1, 2019, 7:59am UTC](https://forum.elixirforum.com/t/clustering-in-elixir-1-9-with-mix-releases-and-libcluster/24337 "2019-08-01T07:59:05Z")

</div>

We just published a guide to automatic clustering in Elixir 1.9, with Mix releases and libcluster. The cluster automatically discovers nodes as they join or leave, allowing you to scale by simply increasing the number o…

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