copr: use different wsgi for different urls

so overload of one kind of requests does not block backend and vice versa
This commit is contained in:
Miroslav Suchý 2015-11-19 15:46:14 +01:00
parent 2cda638026
commit a71165245a
2 changed files with 18 additions and 2 deletions

View file

@ -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

View file

@ -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
<Location /api>
WSGIProcessGroup api
</Location>
<Location /backend>
WSGIProcessGroup backend
</Location>
<Location /stats_rcv>
WSGIProcessGroup stats
</Location>
<Location /tmp>
WSGIProcessGroup tmp
</Location>
#ErrorLog logs/error_coprs
#CustomLog logs/access_coprs common