From f9c8d480aee3451e0874035b44325de7364aea92 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sat, 11 Jan 2020 11:09:05 +0100 Subject: [PATCH] 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. --- roles/copr/frontend-cloud/templates/httpd/coprs.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/frontend-cloud/templates/httpd/coprs.conf b/roles/copr/frontend-cloud/templates/httpd/coprs.conf index 81a41240e7..0a1cdfef02 100644 --- a/roles/copr/frontend-cloud/templates/httpd/coprs.conf +++ b/roles/copr/frontend-cloud/templates/httpd/coprs.conf @@ -3,7 +3,7 @@ WSGISocketPrefix /var/run/wsgi Alias /robots.txt /var/www/html/robots.txt 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 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