From be3d025dad343480303aeede9890e7eb29a7c4f5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 27 May 2020 13:05:13 -0700 Subject: [PATCH] phx2: bodhi: try restarting httpds more often/fewer requests Signed-off-by: Kevin Fenzi --- roles/bodhi2/base/templates/httpd.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bodhi2/base/templates/httpd.conf.j2 b/roles/bodhi2/base/templates/httpd.conf.j2 index 2b4d495950..2f15c7c000 100644 --- a/roles/bodhi2/base/templates/httpd.conf.j2 +++ b/roles/bodhi2/base/templates/httpd.conf.j2 @@ -25,7 +25,7 @@ LoadModule unixd_module modules/mod_unixd.so LoadModule mpm_event_module modules/mod_mpm_event.so StartServers 20 ServerLimit 100 -MaxRequestsPerChild 2000 +MaxRequestsPerChild 100 MaxRequestWorkers 100 AllowOverride None @@ -61,7 +61,7 @@ Alias /static/v{{ bodhi_version.split('-')[0] }} /srv/bodhi/bodhi/server/static/ {% else %} Alias /static/v{{ bodhi_version.split('-')[0] }} /usr/lib/python3.7/site-packages/bodhi/server/static/ {% endif %} -WSGIDaemonProcess bodhi display-name=bodhi processes=2 threads=2 maximum-requests=1000 home=/httpdir request-timeout=60 +WSGIDaemonProcess bodhi display-name=bodhi processes=2 threads=2 maximum-requests=100 home=/httpdir request-timeout=60 WSGIApplicationGroup %{GLOBAL} WSGISocketPrefix run/wsgi WSGIRestrictStdout Off