Skip to content

Commit

Permalink
Merge pull request #2 from MiLk/fixs/config
Browse files Browse the repository at this point in the history
Add variables to configure a bit php
  • Loading branch information
MiLk committed Aug 21, 2015
2 parents 11e78a8 + 7237e08 commit 28657a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ php_custom_extensions: []
php_fpm_user: apache
php_fpm_group: apache
php_sessions_dir: "/tmp"

php_pm_max_children: 50
php_pm_start_servers: 5
php_pm_min_spare_servers: 5
php_pm_max_spare_servers: 35
php_pm_max_requests: 0
10 changes: 5 additions & 5 deletions templates/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ pm = dynamic
; CGI.
; Note: Used when pm is set to either 'static' or 'dynamic'
; Note: This value is mandatory.
pm.max_children = 50
pm.max_children = {{ php_pm_max_children }}

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 5
pm.start_servers = {{ php_pm_start_servers }}

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 5
pm.min_spare_servers = {{ php_pm_min_spare_servers }}

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 35
pm.max_spare_servers = {{ php_pm_max_spare_servers }}

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500
pm.max_requests = {{ php_pm_max_requests }}

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. By default, the status page shows the following
Expand Down

0 comments on commit 28657a5

Please sign in to comment.