chore:Supervisor에 Queue Worker 2개 자동 실행 추가
- numprocs=2 (영상 2개 동시 생성 가능) - timeout=1800, max-jobs=10, max-time=3600 - 자동 재시작 (autorestart=true) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
23
sam/docker/mng/supervisord.conf
Executable file
23
sam/docker/mng/supervisord.conf
Executable file
@@ -0,0 +1,23 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:php-fpm]
|
||||
command=/usr/local/sbin/php-fpm
|
||||
|
||||
[program:nginx]
|
||||
command=nginx -g "daemon off;"
|
||||
|
||||
[program:queue-worker]
|
||||
command=php /var/www/sales/artisan queue:work database --sleep=3 --tries=1 --timeout=1800 --max-jobs=10 --max-time=3600
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
numprocs=2
|
||||
directory=/var/www/sales
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=5
|
||||
startretries=3
|
||||
stopwaitsecs=1830
|
||||
stdout_logfile=/var/www/sales/storage/logs/queue-worker.log
|
||||
stdout_logfile_maxbytes=5MB
|
||||
stderr_logfile=/var/www/sales/storage/logs/queue-worker-error.log
|
||||
stderr_logfile_maxbytes=5MB
|
||||
Reference in New Issue
Block a user