mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-30 01:28:52 +00:00
47 lines
1.4 KiB
INI
47 lines
1.4 KiB
INI
; ############################################################
|
|
; # Devilbox php-fpm.conf: dynamic example
|
|
; ############################################################
|
|
;
|
|
; Information
|
|
; -----------
|
|
; * Do not edit this file (it belongs to git)
|
|
; * This file show a possible dynamic example configuration
|
|
; * If this file is enabled, it will overwrite the current worker settings
|
|
;
|
|
; How to enable?
|
|
; --------------
|
|
; * Copy this file to another file with ".conf" extension
|
|
; * Only files with ".conf" extensions will be applied by PHP-FPM
|
|
|
|
|
|
; ###
|
|
; ### Pool configuratoin
|
|
; ###
|
|
|
|
[www]
|
|
|
|
; dynamic - the number of child processes is set dynamically based on the following directives:
|
|
pm = dynamic
|
|
|
|
; The maximum number of child processes to be created
|
|
pm.max_children = 50
|
|
|
|
; The number of child processes created on startup. Used only when pm is set to dynamic.
|
|
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2.
|
|
pm.start_servers = 4
|
|
|
|
; The desired minimum number of idle server processes.
|
|
pm.min_spare_servers = 2
|
|
|
|
; The desired maximum number of idle server processes.
|
|
pm.max_spare_servers = 6
|
|
|
|
; 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
|
|
|
|
|
|
; vim: set ft=dosini:
|