add pm_mode as env
This commit is contained in:
parent
e0f21268b0
commit
e989738aa6
2 changed files with 2 additions and 1 deletions
|
@ -90,6 +90,7 @@ ENV nginx_root_directory=/var/www/html/public \
|
||||||
nginx_fastcgi_read_timeout=100 \
|
nginx_fastcgi_read_timeout=100 \
|
||||||
client_max_body_size=2M \
|
client_max_body_size=2M \
|
||||||
clear_env=no \
|
clear_env=no \
|
||||||
|
pm_mode=dynamic \
|
||||||
pm_start_servers=20 \
|
pm_start_servers=20 \
|
||||||
pm_min_spare_servers=10 \
|
pm_min_spare_servers=10 \
|
||||||
pm_max_spare_servers=20 \
|
pm_max_spare_servers=20 \
|
||||||
|
|
|
@ -34,7 +34,7 @@ listen.group = nobody
|
||||||
pm.status_path = /fpm-status
|
pm.status_path = /fpm-status
|
||||||
|
|
||||||
; Ondemand process manager
|
; Ondemand process manager
|
||||||
pm = dynamic
|
pm = $pm_mode
|
||||||
|
|
||||||
; The number of child processes to be created when pm is set to 'static' and the
|
; 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'.
|
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
|
||||||
|
|
Loading…
Add table
Reference in a new issue