From d7720ef7b5420994b6ebe09285b574c4c75a9ee2 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 28 Oct 2022 20:42:53 +0200 Subject: [PATCH] copr-be: temporarily slow backend down Related to: https://pagure.io/fedora-infrastructure/issue/10951 https://docs.google.com/spreadsheets/d/1URopuw2R533H6i4vSTH8Nt47EIhs3ubWcLUXvRcxTRQ/edit#gid=0 I'm also disabling the /etc/cron.weekly job (manually). --- roles/copr/backend/files/cron.daily/copr-backend | 6 +++--- roles/copr/backend/templates/copr-be.conf.j2 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/copr/backend/files/cron.daily/copr-backend b/roles/copr/backend/files/cron.daily/copr-backend index 04f8f6bebf..405f93b05d 100644 --- a/roles/copr/backend/files/cron.daily/copr-backend +++ b/roles/copr/backend/files/cron.daily/copr-backend @@ -1,7 +1,7 @@ #!/usr/bin/sh -runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr_prune_results.py &> /dev/null" - copr -runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr_prune_srpms.py &> /dev/null" - copr +#runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr_prune_results.py &> /dev/null" - copr +#runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr_prune_srpms.py &> /dev/null" - copr # Optional - Counting downloaded RPMs through Amazon CDN -runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr-aws-s3-hitcounter --verbose &> /dev/null" - copr +#runuser -c "PYTHONUNBUFFERED=1 python3 /usr/bin/copr-aws-s3-hitcounter --verbose &> /dev/null" - copr diff --git a/roles/copr/backend/templates/copr-be.conf.j2 b/roles/copr/backend/templates/copr-be.conf.j2 index fec96850fb..0a3d039dd3 100644 --- a/roles/copr/backend/templates/copr-be.conf.j2 +++ b/roles/copr/backend/templates/copr-be.conf.j2 @@ -56,7 +56,7 @@ builds_max_workers_arch= # Maximum number of concurrently running tasks per project owner. {% if env == 'production' %} -builds_max_workers_owner=45 +builds_max_workers_owner=10 {% elif devel %} builds_max_workers_owner=15 {% else %} @@ -64,11 +64,11 @@ builds_max_workers_owner=0 {% endif %} # Maximum number of concurrently running tasks per build sandbox. -builds_max_workers_sandbox=35 +builds_max_workers_sandbox=5 # Maximum number of concurrent background processes spawned for handling # actions. -actions_max_workers=20 +actions_max_workers=10 # publish fedmsg notifications from workers if true # default is false