[erlang-questions] Lots of epmd in pod
Fri Aug 9 15:38:40 CEST 2019
Based on the output this is likely the issue but why are the epmd processes going down in the first place? Usually the first one keeps running and no new ones are created, so this issue of reaping doesn't come up.
Another option is to not use epmd when running in kubernetes. There aren't port issues in k8s so it isn't needed.
Checkout https://github.com/oltarasenko/epmdless for this.
The only catch is you need to set the env var `EPMDLESS_REMSH_PORT` to the port used for distribution so that remote_console works the same as before.
I'll get something written up about using this in kubernetes soon.
On Fri, Aug 9, 2019, at 04:35, Bryan Hunt wrote:
> I bet it’s zombie processes - the epmd process is not being reaped.
> The epmd will be cleaned up when the pod terminates.
> Docker fixed this by adding an —init option which runs the tini init process
> Kubernetes does not start docker containers with this option
> You can use tini as a tiny init process to solve this issue - it’s already an alpine package.
> *Code Sync & Erlang Solutions Conferences*
> Code BEAM Lite BD <https://www2.erlang-solutions.com/l/23452/2019-06-24/66scls> - Budapest: 20 September 2019
> Code BEAM Lite NYC <https://www2.erlang-solutions.com/l/23452/2019-06-24/66scvd> - NYC: 01 October 2019
> Code BEAM Lite <https://codesync.global/conferences/code-beam-lite-berlin-2019/> - Berlin: 11 October 2019
> RabbitMQ Summit <https://www2.erlang-solutions.com/l/23452/2019-06-24/66sd8l> - London: 4 November 2019
> Code Mesh LDN <https://www2.erlang-solutions.com/l/23452/2019-06-24/66sd8x> - London: 7-8 November 2019
> Code BEAM Lite India <https://codesync.global/conferences/code-beam-lite-bangalore/> - Bangalore: 14 November 2019
> Code BEAM Lite AMS <https://www2.erlang-solutions.com/l/23452/2019-06-24/66sdbs> - Amsterdam: 28 November 2019
> Lambda Days <https://www2.erlang-solutions.com/l/23452/2019-06-24/66sdcd> - Kraków: 13-14 February 2020
> Code BEAM SF - San Francisco: 5-6 March 2020
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions