rfjakob / earlyoom

earlyoom - Early OOM Daemon for Linux
MIT License
2.96k stars 157 forks source link

Distribute Earlyoom via Container on Docker Swarm #291

Closed kaindlnetwork closed 1 year ago

kaindlnetwork commented 1 year ago

Hi everybody,

We have a Servercluster that uses earlyoom to save us when things get messy with RAM. We searched and could not find a current maintained Container Version of earlyoom. At least (with no Go knowledge) we could not find what does earlyoom need (files, folders, permissions CAPs) to run. Distributing earlyoom as a container would be a) overkill for many b) Easy to rollout to new servers with only the need of kernel compatibility.

If somebody knows we would like to develop an Container Image for everybody to use :D

rfjakob commented 1 year ago

Hi, earlyoom is written in pure C, only the self-tests are in Go.

That being said, I'm not sure earlyoom can work within a container, as one container cannot see the processes from other containers, which defeats the purpose of earlyoom.

fzyzcjy commented 6 months ago

Hi, I wonder whether docker's pid=host configuration will work? Thanks