mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-19 04:47:52 +00:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
|
; ############################################################
|
||
|
; # Devilbox php-fpm.conf: ondemand example
|
||
|
; ############################################################
|
||
|
;
|
||
|
; Information
|
||
|
; -----------
|
||
|
; * Do not edit this file (it belongs to git)
|
||
|
; * This file show a possible ondemand 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]
|
||
|
|
||
|
; ondemand - the processes spawn on demand (when requested, as opposed to dynamic, where
|
||
|
; pm.start_servers are started when the service is started.
|
||
|
pm = ondemand
|
||
|
|
||
|
; The maximum number of child processes to be created
|
||
|
pm.max_children = 50
|
||
|
|
||
|
; 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
|
||
|
|
||
|
; The number of seconds after which an idle process will be killed.
|
||
|
pm.process_idle_timeout = 10s
|
||
|
|
||
|
; vim: set ft=dosini:
|