V
V
Vit2014-03-11 09:26:52
PHP
Vit, 2014-03-11 09:26:52

Are there analogues of supervisord and what are their advantages?

Good afternoon. There was a need to "demonize" PHP scripts (workers for the rabbitmq task queue). The choice so far has fallen on supervisord. Never used it or any of its counterparts before.
I would like to clarify with knowledgeable people: what other similar tools are there, what are their advantages or disadvantages over supervisor? How can there be pitfalls in using the supervisor itself?
What you need:
- start/stop scripts as daemons
- view the status of scripts (how many are running, etc.)
- the ability to run a certain number of processes for a script and automatically restart processes if they suddenly fall
- logging
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kuzmichev, 2014-03-11
@Assargin

We use supervisord to manage the php workers for Gearman.
It works stably, although there is such a shortcoming: it rarely happens that the restart of the service does not work and the workers are not killed. How critical it is, everyone decides for himself, we used to be infuriated (when the code was released, a restart was made and it happened that it didn’t work), now they fixed it - they removed the restart altogether, the workers themselves determine whether the new code rolled out and terminate themselves correctly, the supervisor starts instead of the completed workers new ones.
There is an opportunity in the config to redirect output streams from the workers, which we gladly use for logging.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question