From a71165245a1766977ae7ea811c42d0ff02210ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Thu, 19 Nov 2015 15:46:14 +0100 Subject: [PATCH] copr: use different wsgi for different urls so overload of one kind of requests does not block backend and vice versa --- roles/copr/frontend/files/httpd/coprs.conf | 6 +++++- roles/copr/frontend/files/httpd/coprs_ssl.conf | 14 +++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/roles/copr/frontend/files/httpd/coprs.conf b/roles/copr/frontend/files/httpd/coprs.conf index 3af51ba147..8d89bfde61 100644 --- a/roles/copr/frontend/files/httpd/coprs.conf +++ b/roles/copr/frontend/files/httpd/coprs.conf @@ -6,7 +6,11 @@ WSGISocketPrefix /var/run/wsgi ServerName copr-fe.cloud.fedoraproject.org WSGIPassAuthorization On - WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=5 + WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=15 display-name=other + WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api + WSGIDaemonProcess backend user=copr-fe group=copr-fe threads=15 display-name=backend + WSGIDaemonProcess stats user=copr-fe group=copr-fe threads=15 display-name=stats + WSGIDaemonProcess tmp user=copr-fe group=copr-fe threads=15 display-name=tmp WSGIScriptAlias / /usr/share/copr/coprs_frontend/application WSGIProcessGroup 127.0.0.1 diff --git a/roles/copr/frontend/files/httpd/coprs_ssl.conf b/roles/copr/frontend/files/httpd/coprs_ssl.conf index 92a4a1ad8a..6b6632a605 100644 --- a/roles/copr/frontend/files/httpd/coprs_ssl.conf +++ b/roles/copr/frontend/files/httpd/coprs_ssl.conf @@ -13,10 +13,22 @@ ServerName copr-fe.cloud.fedoraproject.org:443 WSGIPassAuthorization On - #WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=5 WSGIScriptAlias / /usr/share/copr/coprs_frontend/application WSGIProcessGroup 127.0.0.1 + + WSGIProcessGroup api + + + WSGIProcessGroup backend + + + WSGIProcessGroup stats + + + WSGIProcessGroup tmp + + #ErrorLog logs/error_coprs #CustomLog logs/access_coprs common