laradock 添加每个站点的队列监控

找到laravel-horizon目录,修改supervisord.d/laravel-horizon.conf文件

# laravel-worker-site-1.conf

[program:laravel-worker]
progress_name=%(program_name)s_%(progress_num)02d
command=php /var/www/site-1/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
numprocs=8
user=laradock
redirect_stderr=true
# laravel-worker-site-2.conf

[program:laravel-worker]
progress_name=%(program_name)s_%(progress_num)02d
command=php /var/www/site-2/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
numprocs=8
user=laradock
redirect_stderr=true

为每个站点的监控配置相应的进程、执行命令以及一些相关的参数

posted @ 2021-04-08 15:22  caibaotimes  阅读(67)  评论(0编辑  收藏  举报