Browse Source

Corrections des confs Apache et FPM

Teddy Cornaut 1 month ago
parent
commit
caa326b1a2
2 changed files with 7 additions and 1 deletions
  1. 6
    0
      dicos/61_pve.xml
  2. 1
    1
      tmpl/mse-fpm.conf

+ 6
- 0
dicos/61_pve.xml View File

@@ -527,6 +527,9 @@
527 527
             <variable name='mseFpmMode' type='string' description='Mode de création de processus' >
528 528
                    <value>dynamic</value>
529 529
             </variable>
530
+            <variable name='mseFpmProcessIDLETimeout' type='number' description="Temps d'inactivité avant la mort du process (secondes)">
531
+                <value>10</value>
532
+            </variable>
530 533
             <variable name='mseFpmMaxChildren' type='string' description='Nombre maximum de process' >
531 534
                    <value>200</value>
532 535
             </variable>
@@ -539,6 +542,9 @@
539 542
             <variable name='mseFpmMaxSpareThreads' type='string' description='Nombre maximum de process disponibles' >
540 543
                    <value>20</value>
541 544
             </variable>
545
+            <variable name='mseFpmMaxRequest' type='string' description='Nombre maximum de requêtes' >
546
+                   <value>1000</value>
547
+            </variable>
542 548
             <variable name='mseFpmPhpReqTerminateTimeout' type='string' description="Temps maximal d'exécution d'une requête, en secondes" >
543 549
                    <value>600</value>
544 550
             </variable>

+ 1
- 1
tmpl/mse-fpm.conf View File

@@ -17,7 +17,7 @@ pm.min_spare_servers = %%mseFpmMinSpareThreads
17 17
 pm.max_spare_servers = %%mseFpmMaxSpareThreads
18 18
 %end if
19 19
 pm.max_requests = %%mseFpmMaxRequest
20
-pm.process_idle_timeout = 10s
20
+pm.process_idle_timeout = %%{mseFpmProcessIDLETimeout}s
21 21
 
22 22
 request_terminate_timeout = %%mseFpmPhpReqTerminateTimeout
23 23
 request_slowlog_timeout = %%{mseFpmPhpReqSlowlogTimeout}s