ckhrysze

ckhrysze

EC2 docker networking

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.

Most Liked

ckhrysze

ckhrysze

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.

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?

Where Next?

Popular in Discussions Top

andre1sk
A big advantage to Elixir is all the distributed goodness but for many applications running on multiple nodes having integrated Etcd, Zoo...
New
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New
lorenzo
Hey everone! I created a prototype for my app using Nodejs for the api. But the framework I chose wasnt great (in general theresnt any g...
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
slashdotdash
Phoenix Live View is now publicly available on GitHub. Here’s Chris McCord’s tweet announcing making it public.
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30877 112
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement