Merge pull request #395 from blizzz/support_status_path

add option to set pm.status_path
This commit is contained in:
Jeff Geerling 2023-07-07 18:10:31 -05:00 committed by GitHub
commit 8b216f5586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,7 @@ The handler restarts PHP-FPM by default. Setting the value to `reloaded` will re
pool_pm_min_spare_servers: 1
pool_pm_max_spare_servers: 3
pool_pm_max_requests: 500
pool_pm_status_path: /status
List of PHP-FPM pool to create. By default, www pool is created. To setup a new pool, add an item to php_fpm_pools list.

View File

@ -31,6 +31,7 @@ php_fpm_pm_start_servers: 5
php_fpm_pm_min_spare_servers: 5
php_fpm_pm_max_spare_servers: 5
php_fpm_pm_max_requests: 0
php_fpm_pm_status_path: ""
# PHP-FPM pool configuration.
php_fpm_pools:
@ -44,6 +45,7 @@ php_fpm_pools:
pool_pm_min_spare_servers: "{{ php_fpm_pm_min_spare_servers }}"
pool_pm_max_spare_servers: "{{ php_fpm_pm_max_spare_servers }}"
pool_pm_max_requests: "{{ php_fpm_pm_max_requests }}"
pool_pm_status_path: "{{ php_fpm_pm_status_path }}"
# The executable to run when calling PHP from the command line.
php_executable: "php"

View File

@ -15,3 +15,6 @@ pm.start_servers = {{ item.pool_pm_start_servers | default(5, true) }}
pm.min_spare_servers = {{ item.pool_pm_min_spare_servers | default(5, true) }}
pm.max_spare_servers = {{ item.pool_pm_max_spare_servers | default(5, true) }}
pm.max_requests = {{ item.pool_pm_max_requests | default(500, true) }}
{% if item.pool_pm_status_path|length %}
pm.status_path = {{ item.pool_pm_status_path }}
{% endif %}