From 8c10a12cbc27b40f9a64dbcc29d927104953f55d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 1 Mar 2024 20:24:39 +0100 Subject: [PATCH] copr-be-dev: limit concurrency per/sandbox/owner --- roles/copr/backend/templates/copr-be.conf.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/copr/backend/templates/copr-be.conf.j2 b/roles/copr/backend/templates/copr-be.conf.j2 index b230cfb467..847a07d505 100644 --- a/roles/copr/backend/templates/copr-be.conf.j2 +++ b/roles/copr/backend/templates/copr-be.conf.j2 @@ -61,13 +61,17 @@ build_max_workers_arch_per_owner=s390x=12 {% if env == 'production' %} builds_max_workers_owner=90 {% elif devel %} -builds_max_workers_owner=15 +builds_max_workers_owner=8 {% else %} builds_max_workers_owner=0 {% endif %} # Maximum number of concurrently running tasks per build sandbox. +{% if env == 'production' %} builds_max_workers_sandbox=35 +{% else %} +builds_max_workers_sandbox=4 +{% endif %} # Maximum number of concurrent background processes spawned for handling # actions.