From e7421962e7eeb3454734993344e9067e853ae207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 7 Aug 2017 09:19:45 +0000 Subject: [PATCH 1/2] HyperKitty: more apache worker processes We have plenty of RAM on this machine, and I think some UI slowdowns may be caused by overworked daemon processes (these days there's more users and more async requests than there used to be). --- roles/mailman/templates/apache.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mailman/templates/apache.conf.j2 b/roles/mailman/templates/apache.conf.j2 index 8dfdc5a6b7..01cf5bace2 100644 --- a/roles/mailman/templates/apache.conf.j2 +++ b/roles/mailman/templates/apache.conf.j2 @@ -6,7 +6,7 @@ Alias /static {{ mailman_webui_basedir }}/static #CustomLog /var/log/httpd/webui_access.log combined WSGIScriptAlias / {{ mailman_webui_confdir }}/webui.wsgi -WSGIDaemonProcess webui display-name=webui maximum-requests=1000 processes=4 threads=10 +WSGIDaemonProcess webui display-name=webui maximum-requests=1000 processes=8 threads=10 WSGISocketPrefix run/wsgi WSGIRestrictStdout On WSGIRestrictSignal Off From 9041402686178c9710394b660024cb2efe182c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 7 Aug 2017 09:29:32 +0000 Subject: [PATCH 2/2] Amend last commit, don't use more processes than CPUs, use threads instead --- roles/mailman/templates/apache.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mailman/templates/apache.conf.j2 b/roles/mailman/templates/apache.conf.j2 index 01cf5bace2..d683fcf183 100644 --- a/roles/mailman/templates/apache.conf.j2 +++ b/roles/mailman/templates/apache.conf.j2 @@ -6,7 +6,7 @@ Alias /static {{ mailman_webui_basedir }}/static #CustomLog /var/log/httpd/webui_access.log combined WSGIScriptAlias / {{ mailman_webui_confdir }}/webui.wsgi -WSGIDaemonProcess webui display-name=webui maximum-requests=1000 processes=8 threads=10 +WSGIDaemonProcess webui display-name=webui maximum-requests=1000 processes=4 threads=30 WSGISocketPrefix run/wsgi WSGIRestrictStdout On WSGIRestrictSignal Off