From 58b7c91023348d936b9d2b63229a7c1c0a5438ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 16 Dec 2019 11:27:47 +0100 Subject: [PATCH] copr: repo files can eat whole pool, use dedicated ProcessGroup for them Sometimes webUI lagged. When I checked I seen a lot of /coprs/ibotty/prometheus-exporters/repo/epel-7/ibotty-prome Those requests can be valid, but as there is many of them, they blocks processes handling webUI. Lets move /repo/ requesto to dedicated group. --- roles/copr/frontend-cloud/templates/httpd/coprs.conf | 1 + roles/copr/frontend-cloud/templates/httpd/coprs_ssl.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/roles/copr/frontend-cloud/templates/httpd/coprs.conf b/roles/copr/frontend-cloud/templates/httpd/coprs.conf index c3debd2a87..81a41240e7 100644 --- a/roles/copr/frontend-cloud/templates/httpd/coprs.conf +++ b/roles/copr/frontend-cloud/templates/httpd/coprs.conf @@ -8,6 +8,7 @@ WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api max WSGIDaemonProcess backend user=copr-fe group=copr-fe threads=15 display-name=backend maximum-requests=8000 graceful-timeout=20 WSGIDaemonProcess stats user=copr-fe group=copr-fe threads=15 display-name=stats maximum-requests=8000 graceful-timeout=20 WSGIDaemonProcess tmp user=copr-fe group=copr-fe threads=15 display-name=tmp maximum-requests=8000 graceful-timeout=20 +WSGIDaemonProcess repo user=copr-fe group=copr-fe threads=15 display-name=repo maximum-requests=8000 graceful-timeout=20 WSGIScriptAlias / /usr/share/copr/coprs_frontend/application diff --git a/roles/copr/frontend-cloud/templates/httpd/coprs_ssl.conf.j2 b/roles/copr/frontend-cloud/templates/httpd/coprs_ssl.conf.j2 index a667c8db4d..a22223cc47 100644 --- a/roles/copr/frontend-cloud/templates/httpd/coprs_ssl.conf.j2 +++ b/roles/copr/frontend-cloud/templates/httpd/coprs_ssl.conf.j2 @@ -34,6 +34,9 @@ WSGIProcessGroup tmp + + WSGIProcessGroup repo + #ErrorLog logs/error_coprs #CustomLog logs/access_coprs common