copr: fe: set processes=4 for the main WSGIDaemonProcess

And lower the threads=15 to threads=5, per WSGIDaemonProcess threads=num
documentation:
| Do not get carried away and set this to a very large number in the
| belief that it will somehow magically enable you to handle many more
| concurrent users. Any sort of increased value would only be
| appropriate where your code is I/O bound. If you code is CPU bound,
| you are better of using at most 3 to 5 threads per process and using
| more processes.
This commit is contained in:
Pavel Raiskup 2020-01-11 11:09:05 +01:00 committed by Pierre-Yves Chibon
parent bc7fe3b67e
commit f9c8d480ae

View file

@ -3,7 +3,7 @@ WSGISocketPrefix /var/run/wsgi
Alias /robots.txt /var/www/html/robots.txt Alias /robots.txt /var/www/html/robots.txt
Alias "/db_dumps/" "/var/www/html/db_dumps/" Alias "/db_dumps/" "/var/www/html/db_dumps/"
WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=15 display-name=other maximum-requests=8000 graceful-timeout=20 WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe processes=4 threads=5 display-name=other maximum-requests=8000 graceful-timeout=20
WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api maximum-requests=8000 graceful-timeout=20 WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api maximum-requests=8000 graceful-timeout=20
WSGIDaemonProcess backend user=copr-fe group=copr-fe threads=15 display-name=backend maximum-requests=8000 graceful-timeout=20 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 stats user=copr-fe group=copr-fe threads=15 display-name=stats maximum-requests=8000 graceful-timeout=20