-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): tweak PHP-FPM process manager values (#278)
- Loading branch information
1 parent
7e9ffb8
commit f9e9916
Showing
8 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; The access log file. | ||
; Default value: not set | ||
access.log = /dev/null | ||
|
||
; 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'. | ||
; This value sets the limit on the number of simultaneous requests that will be | ||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||
; CGI. The below defaults are based on a server without much resources. Don't | ||
; 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 = 40 | ||
|
||
; 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) / 2 | ||
pm.start_servers = 4 | ||
|
||
; 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 = 2 | ||
|
||
; 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 = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; The access log file. | ||
; Default value: not set | ||
access.log = /dev/null | ||
|
||
; 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'. | ||
; This value sets the limit on the number of simultaneous requests that will be | ||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||
; CGI. The below defaults are based on a server without much resources. Don't | ||
; 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 = 40 | ||
|
||
; 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) / 2 | ||
pm.start_servers = 4 | ||
|
||
; 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 = 2 | ||
|
||
; 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 = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; The access log file. | ||
; Default value: not set | ||
access.log = /dev/null | ||
|
||
; 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'. | ||
; This value sets the limit on the number of simultaneous requests that will be | ||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||
; CGI. The below defaults are based on a server without much resources. Don't | ||
; 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 = 40 | ||
|
||
; 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) / 2 | ||
pm.start_servers = 4 | ||
|
||
; 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 = 2 | ||
|
||
; 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 = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; The access log file. | ||
; Default value: not set | ||
access.log = /dev/null | ||
|
||
; 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'. | ||
; This value sets the limit on the number of simultaneous requests that will be | ||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||
; CGI. The below defaults are based on a server without much resources. Don't | ||
; 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 = 40 | ||
|
||
; 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) / 2 | ||
pm.start_servers = 4 | ||
|
||
; 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 = 2 | ||
|
||
; 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 = 4 |