Alternative to Dock Supervisor

Supervisord is a really great tool even for a docker environment. This helps a lot when redirecting stderr and forwarding signals. But it has several drawbacks:

  • It does not support delayed startup. It would be useful to delay the launch of the agent until the main application is initialized. Priority does not solve this problem.
  • If an application is part of the FASAL State supervisord, it simply writes it, but continues to work. Therefore, you cannot see it until you see the container logs. It can be much friendlier if the supervisor just stops, because in this case you see a problem withdocker ps -a

So what is the best alternative to a supervisor?

+5
source share
1 answer

In response to the β€œPID1 zombie reaping” problem, I recommended earlier (in β€œ Using the supervisor in docker ”) to use runit instead of supervisord

Runit uses less memory than Supervisord because Runit is written in C and Supervisord in Python.
And in some cases, using restarting a process in a container is preferable to restarting all containers.

See more details phusion/baseimage-docker.

+2
source

Source: https://habr.com/ru/post/1017136/


All Articles