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

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91898 914
New
AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4616 55835 594
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
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
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews