通过Supervisor和php artisan queue:work
增加队列工人数后,有时我得到:
WARNING: [pool www] server reached pm.max_children setting (10), consider raising it
有没有人知道php artisan queue:work
是否引起了上面的警告?
您可以从这里更改max_children
的值:
/etc/php/8.0/fpm/pool.d/www.conf
请注意PHP版本和操作系统,并更改路径以匹配您的。
但是当你说有时候听起来你的PHP脚本很慢。