S
S
Sergei Ch.2017-05-14 19:00:00
Message Queues
Sergei Ch., 2017-05-14 19:00:00

Why does Beanstalkd workers restart??

Good day!
The website written in Yii2 runs Beanstalk workers.
For some reason, all workers are forced to restart every 50-60 seconds. Because of this, the minimum priority queue builds up faster than the workers can complete it.
in the logs of the worker, before completion, the following text appears:

Received signal 2.
Exiting...

Nowhere did I find this period, according to which restarts can occur.
Example config in Supervisord:
command=/home/socialf/public_html/app/yii pinterest-job
numprocs=1
process_name=%(process_num)02d
autostart=true
autorestart=true
startsecs=1
startretries=3
user=root
redirect_stderr=true
stopsignal=INT
stdout_logfile=/home/socialf/public_html/app/console/runtime/logs/%(program_n$
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10

What could be the problem? In which direction to dig?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question