PHP-FPM プロセス数変更 staticにしちゃって良い
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# vi /etc/php/7.2/fpm/pool.d/www.conf ;pm = dynamic pm = static ←●追加 ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. ; This value sets the limit on the number of simultaneous requests that will be ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP ; CGI. The below defaults are based on a server without much resources. Don't ; forget to tweak pm.* to fit your needs. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. ;pm.max_children = 13 pm.max_children = 50 ←●追加 |
タイムアウト対応 PHP-FPM
1 2 3 |
# vi /etc/php/7.2/fpm/pool.d/www.conf request_terminate_timeout = 300 |
1 2 |
$ sudo service php7.2-fpm restart $ sudo service php7.2-fpm status |
Nginx [crayon-600a …