ckhrysze

ckhrysze

I just saw this article and am curious if it has any ramifications regarding OTP nodes talking with each other when running as a container.

I haven’t had to really learn docker netwoking, and I haven’t done enough with multi instance elixir/erlang environments to know without a lot of additional research.

Showing Posts 1 to 4

OvermindDL1

OvermindDL1

Just need to expose the correct ports, I actually had my docker instances share the erlang node distribution of the host but I also trusted the code I ran as I wrote it. :slight_smile:

But yeah, if they support bridging, which it looks like they do, you could network mesh across that safely.

sabri

sabri

I just saw this thread, and I thought I could get useful info, as I am running my dockerized phoenix app behind Amazon Elastic Beanstalk load balancer inspired by this useful article ,

But I don’t know how to let OTP nodes talking with each other, as each OTP node on an individual EC2 instance, how would let OTP nodes get aware of each other? what are the options that I have? I know I can use Redis as a connector, but I prefer the OTP way, as Elixir is already built on top of Erlang, and this should be easy to do, but its my first app to deploy..

Any idea? or gist to share?

Also, isn’t host networking mode better in term of performance than bridge mode?

ckhrysze

ckhrysze OP

At this point I have more questions than answers, but this seems like a good place to reference what I’ve found thus far. If all the nodes are known ahead of time, it seems like Running Elixir and Phoenix projects on a cluster of nodes - DockYard is a pretty good reference.

If the nodes are coming in and out, like what is occurring in my scenario, this project seems promising: GitHub - shortishly/mdns: Multicast DNS in Erlang/OTP · GitHub

As my elixir app is a side project, I haven’t had the time to actually try either. Hopefully someone that has can offer some insight.

Regarding networking modes…I just don’t know enough about them to offer anything there.

sabri

sabri

Thank you for answer and links

— All posts loaded —

Where Next? Top

Trending in Discussions Top

cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews