Commit ff09555052fa398cd93c767442e601c6b7fb3193
1 parent
14d2801f
fix php-fpm configuration
Showing
1 changed file
with
11 additions
and
11 deletions
conf/php/php-fpm.d/www.conf
@@ -93,7 +93,7 @@ listen = 127.0.0.1:9000 | @@ -93,7 +93,7 @@ listen = 127.0.0.1:9000 | ||
93 | ; pm.process_idle_timeout - The number of seconds after which | 93 | ; pm.process_idle_timeout - The number of seconds after which |
94 | ; an idle process will be killed. | 94 | ; an idle process will be killed. |
95 | ; Note: This value is mandatory. | 95 | ; Note: This value is mandatory. |
96 | -pm = dynamic | 96 | +pm = ondemand |
97 | 97 | ||
98 | ; The number of child processes to be created when pm is set to 'static' and the | 98 | ; The number of child processes to be created when pm is set to 'static' and the |
99 | ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. | 99 | ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. |
@@ -104,33 +104,33 @@ pm = dynamic | @@ -104,33 +104,33 @@ pm = dynamic | ||
104 | ; forget to tweak pm.* to fit your needs. | 104 | ; forget to tweak pm.* to fit your needs. |
105 | ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' | 105 | ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' |
106 | ; Note: This value is mandatory. | 106 | ; Note: This value is mandatory. |
107 | -pm.max_children = 5 | 107 | +pm.max_children = 572 |
108 | 108 | ||
109 | ; The number of child processes created on startup. | 109 | ; The number of child processes created on startup. |
110 | ; Note: Used only when pm is set to 'dynamic' | 110 | ; Note: Used only when pm is set to 'dynamic' |
111 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | 111 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 |
112 | -pm.start_servers = 2 | 112 | +pm.start_servers = 336 |
113 | 113 | ||
114 | ; The desired minimum number of idle server processes. | 114 | ; The desired minimum number of idle server processes. |
115 | ; Note: Used only when pm is set to 'dynamic' | 115 | ; Note: Used only when pm is set to 'dynamic' |
116 | ; Note: Mandatory when pm is set to 'dynamic' | 116 | ; Note: Mandatory when pm is set to 'dynamic' |
117 | -pm.min_spare_servers = 1 | 117 | +pm.min_spare_servers = 150 |
118 | 118 | ||
119 | ; The desired maximum number of idle server processes. | 119 | ; The desired maximum number of idle server processes. |
120 | ; Note: Used only when pm is set to 'dynamic' | 120 | ; Note: Used only when pm is set to 'dynamic' |
121 | ; Note: Mandatory when pm is set to 'dynamic' | 121 | ; Note: Mandatory when pm is set to 'dynamic' |
122 | -pm.max_spare_servers = 3 | 122 | +pm.max_spare_servers = 522 |
123 | 123 | ||
124 | ; The number of seconds after which an idle process will be killed. | 124 | ; The number of seconds after which an idle process will be killed. |
125 | ; Note: Used only when pm is set to 'ondemand' | 125 | ; Note: Used only when pm is set to 'ondemand' |
126 | ; Default Value: 10s | 126 | ; Default Value: 10s |
127 | -;pm.process_idle_timeout = 10s; | 127 | +pm.process_idle_timeout = 120s |
128 | 128 | ||
129 | ; The number of requests each child process should execute before respawning. | 129 | ; The number of requests each child process should execute before respawning. |
130 | ; This can be useful to work around memory leaks in 3rd party libraries. For | 130 | ; This can be useful to work around memory leaks in 3rd party libraries. For |
131 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. | 131 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. |
132 | ; Default Value: 0 | 132 | ; Default Value: 0 |
133 | -;pm.max_requests = 500 | 133 | +pm.max_requests = 5720 |
134 | 134 | ||
135 | ; The URI to view the FPM status page. If this value is not set, no URI will be | 135 | ; The URI to view the FPM status page. If this value is not set, no URI will be |
136 | ; recognized as a status page. It shows the following informations: | 136 | ; recognized as a status page. It shows the following informations: |
@@ -229,7 +229,7 @@ pm.max_spare_servers = 3 | @@ -229,7 +229,7 @@ pm.max_spare_servers = 3 | ||
229 | ; anything, but it may not be a good idea to use the .php extension or it | 229 | ; anything, but it may not be a good idea to use the .php extension or it |
230 | ; may conflict with a real PHP file. | 230 | ; may conflict with a real PHP file. |
231 | ; Default Value: not set | 231 | ; Default Value: not set |
232 | -;pm.status_path = /status | 232 | +pm.status_path = /status |
233 | 233 | ||
234 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no | 234 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no |
235 | ; URI will be recognized as a ping page. This could be used to test from outside | 235 | ; URI will be recognized as a ping page. This could be used to test from outside |
@@ -327,16 +327,16 @@ pm.max_spare_servers = 3 | @@ -327,16 +327,16 @@ pm.max_spare_servers = 3 | ||
327 | ; does not stop script execution for some reason. A value of '0' means 'off'. | 327 | ; does not stop script execution for some reason. A value of '0' means 'off'. |
328 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | 328 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) |
329 | ; Default Value: 0 | 329 | ; Default Value: 0 |
330 | -;request_terminate_timeout = 0 | 330 | +request_terminate_timeout = 1800 |
331 | 331 | ||
332 | ; Set open file descriptor rlimit. | 332 | ; Set open file descriptor rlimit. |
333 | ; Default Value: system defined value | 333 | ; Default Value: system defined value |
334 | -;rlimit_files = 1024 | 334 | +rlimit_files = 100001 |
335 | 335 | ||
336 | ; Set max core size rlimit. | 336 | ; Set max core size rlimit. |
337 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 | 337 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 |
338 | ; Default Value: system defined value | 338 | ; Default Value: system defined value |
339 | -;rlimit_core = 0 | 339 | +rlimit_core = 0 |
340 | 340 | ||
341 | ; Chroot to this directory at the start. This value must be defined as an | 341 | ; Chroot to this directory at the start. This value must be defined as an |
342 | ; absolute path. When this value is not set, chroot is not used. | 342 | ; absolute path. When this value is not set, chroot is not used. |