Browse code

Merge "Tune apache connection limits down"

Jenkins authored on 2017/03/21 03:41:31
Showing 1 changed files
... ...
@@ -457,29 +457,30 @@ function tune_apache_connections {
457 457
 # MaxClients: maximum number of simultaneous client connections
458 458
 # MaxRequestsPerChild: maximum number of requests a server process serves
459 459
 #
460
-# The apache defaults are too conservative if we want reliable tempest
461
-# testing. Bump these values up from ~400 max clients to 1024 max clients.
460
+# We want to be memory thrifty so tune down apache to allow 256 total
461
+# connections. This should still be plenty for a dev env yet lighter than
462
+# apache defaults.
462 463
 <IfModule mpm_worker_module>
463 464
 # Note that the next three conf values must be changed together.
464 465
 # MaxClients = ServerLimit * ThreadsPerChild
465
-ServerLimit          32
466
+ServerLimit           8
466 467
 ThreadsPerChild      32
467
-MaxClients         1024
468
-StartServers          3
469
-MinSpareThreads      96
470
-MaxSpareThreads     192
468
+MaxClients          256
469
+StartServers          2
470
+MinSpareThreads      32
471
+MaxSpareThreads      96
471 472
 ThreadLimit          64
472 473
 MaxRequestsPerChild   0
473 474
 </IfModule>
474 475
 <IfModule mpm_event_module>
475 476
 # Note that the next three conf values must be changed together.
476 477
 # MaxClients = ServerLimit * ThreadsPerChild
477
-ServerLimit          32
478
+ServerLimit           8
478 479
 ThreadsPerChild      32
479
-MaxClients         1024
480
-StartServers          3
481
-MinSpareThreads      96
482
-MaxSpareThreads     192
480
+MaxClients          256
481
+StartServers          2
482
+MinSpareThreads      32
483
+MaxSpareThreads      96
483 484
 ThreadLimit          64
484 485
 MaxRequestsPerChild   0
485 486
 </IfModule>