silverdr

silverdr

Running Phx application inside docker container, I get regularly attacked by an EPMD zombie. While I am generally aware of

https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/
for example, my understanding is that this still applies to misbehaving processes. OTOH I wouldn’t expect part of the core Erlang stuff to misbehave so maybe I am simply unaware of something that I should / should not do when running Phx (or generally Elixir/Erlang stuff) inside a container? Any clues?

Showing Posts 1 to 8

D4no0

D4no0

Are you using EPMD for something? I think it is possible to start erlang runtime without using EPMD in newer versions.

silverdr

silverdr OP

Currently no. It’s still single-host, single-node environment. Not starting epmd at all if possible would help, although I’d prefer to understand the problem first

D4no0

D4no0

EPMD is not started as a child process of erlang node, instead the mode of working is that it gets started with the runtime if it was not already started and the process is responsible for finding and marking all the active nodes on the host. I can confirm that this is true even for more exotic platforms such as android, it is most probably something that stuck historically.

I can’t confirm for sure but I remember reading about erlang deciding to ditch epmd in favor of another discovery system.

josevalim

josevalim

Creator of Elixir

In a release, you can set RELEASE_DISTRIBUTION=none and I think it won’t start EPMD.

silverdr

silverdr OP

I read more erlang docs about EPMD and since i take it is run daemonised then most probably the

daemonised process scenario described (on nginx example) in the previously linked article kicks-in. Now.. how do I start a releases based Phx application so that the runtime doesn’t spawn this daemon?

silverdr

silverdr OP

Hehe.. race condition :wink: I’ll examine the suggestion, tnx

silverdr

silverdr OP

I confirmed yesterday – passing RELEASE_DISTRIBUTION=none to the container prevents said zombie from surfacing. In the longer run a proper solution needs to be devised though. Probably something along the “phusion” base docker image lines. Thanks for all answers

silverdr

silverdr OP

Yeah, especially that doing the workaround with

prevents connecting remote shell to it

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews