I am working with laravel queue jobs with Redis and using supervisor to manage multiple workers.
I have more than one numprocs which working perfectly for some days and then the supervisor goes down even if the supervisor in active state.
Because in supervisor, when supervisord fails more than startretries
value set in configure file to start program/worker then the program/worker goes to FATAL STATE then it will not processing any jobs, So when all workers gone on this state the supervisor goes down.
Then we need to restart the Supervisor manually to start processing again.
But this is not a proper solution for this.
My question is why supervisor fail to start and what is the solution for that ?
Reference Supervisor Doc:-http://supervisord.org/subprocess.html
My config file like this:-
[program:name]
process_name=%(program_name)s_%(process_num)02d
command=php /path/artisan queue:work --queue=queue1,queue2,queue3,queue4,default --tries=1 --daemon
autostart=true
autorestart=true
startretries=15
numprocs=150
user=root
redirect_stderr=true
stdout_logfile=/path/worker.log
stderr_logfile=/path/workerError.log
Update
My log file look like this
My stdout log file looks like this