From 58754236a0bdd37d99156905951bb01ad10678a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 5 Jul 2016 20:03:21 +0200 Subject: [PATCH] tune copr-dist-git.conf cgit can take up to 10 minutes - rarely even longer Once run, it will create cache, but initial run is long. So I increased timeout a lot. But to not take down the server with lots of processes, I limited concurent processes. In normal situation it is more than enough. And when cgit creates cache, it can lock down few users. But it will create the cache and next run will be fast. --- roles/copr/dist_git/files/httpd/copr-dist-git.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/copr/dist_git/files/httpd/copr-dist-git.conf b/roles/copr/dist_git/files/httpd/copr-dist-git.conf index 18567dfea8..1a399d5705 100644 --- a/roles/copr/dist_git/files/httpd/copr-dist-git.conf +++ b/roles/copr/dist_git/files/httpd/copr-dist-git.conf @@ -4,3 +4,13 @@ Alias /per-task-logs /var/lib/copr-dist-git/per-task-logs AllowOverride None Require all granted + + + StartServers 2 + MinSpareServers 2 + MaxSpareServers 3 + ServerLimit 10 + MaxRequestsPerChild 10000 + + +TimeOut 1200