pulling in entire conf directory
[eostre.git] / drupal-configs / shopserver / apache2 / mods-available / mpm_prefork.conf
diff --git a/drupal-configs/shopserver/apache2/mods-available/mpm_prefork.conf b/drupal-configs/shopserver/apache2/mods-available/mpm_prefork.conf
new file mode 100644 (file)
index 0000000..f4fee0e
--- /dev/null
@@ -0,0 +1,20 @@
+# prefork MPM
+# StartServers: number of server processes to start
+# MinSpareServers: minimum number of server processes which are kept spare
+# MaxSpareServers: maximum number of server processes which are kept spare
+# MaxRequestWorkers: maximum number of server processes allowed to start
+# MaxConnectionsPerChild: maximum number of requests a server process serves
+
+<IfModule mpm_prefork_module>
+       StartServers                     5
+       MinSpareServers           5
+       MaxSpareServers          10
+       # 150 MaxRequestWorkers is way too high. (20 may also be too high.) we don't need that many, and it caused shop.fsf.org to swap and fail. 15 is better. -- sudoman 2017-08-03
+        # Quidam: Restored to 150, which is below the default and below what the vm can take. the swap issue needs to be reevaluated. The machine was failing to serve requests
+       # sudoman: 150 is wayy too high. apache was using 2 GB ram and 1 GB swap with 130 processes. restarting it with 150 workers caused the ram to be almost used up immediately. 75 is a good compromise. if you want more workers, give the vm more ram.
+       # sudoman: i gave the shop 2 GB more memory, so 150 should be fine. -- 2018-10-04
+       MaxRequestWorkers         150
+       MaxConnectionsPerChild   5000
+</IfModule>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet