Add nginx.php.fpm_process_count option
This commit is contained in:
parent
7e86de7eea
commit
6c057142a2
2 changed files with 7 additions and 1 deletions
|
|
@ -99,7 +99,11 @@ listen.group = www-data
|
|||
; pm.process_idle_timeout - The number of seconds after which
|
||||
; an idle process will be killed.
|
||||
; Note: This value is mandatory.
|
||||
{% if nginx.php.fpm_process_count|d(False) %}
|
||||
pm = static
|
||||
{% else %}
|
||||
pm = dynamic
|
||||
{% endif %}
|
||||
|
||||
; 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'.
|
||||
|
|
@ -110,7 +114,7 @@ pm = dynamic
|
|||
; 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 = 50
|
||||
pm.max_children = {{ nginx.php.fpm_process_count|d(50) }}
|
||||
|
||||
; The number of child processes created on startup.
|
||||
; Note: Used only when pm is set to 'dynamic'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue