From 21c7baf7bd567fdb70d8bc42d2fe4c6a5b5aede6 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Nov 08 2022 09:48:50 +0000 Subject: backend: de-prio IO for the analyze-results script Our RAID is hitting some IOPS limits in Fedora Copr, and this seems like a low-hanging fruit to help the situation because we calmly can wait for the script results. --- diff --git a/backend/conf/crontab/weekly b/backend/conf/crontab/weekly index f52dc15..9ab6329 100644 --- a/backend/conf/crontab/weekly +++ b/backend/conf/crontab/weekly @@ -1,3 +1,3 @@ #! /bin/sh -runuser -c "/usr/bin/copr-backend-analyze-results && /usr/bin/copr-backend-generate-graphs" - copr >&2 >/dev/null +runuser -c "ionice --class idle /usr/bin/copr-backend-analyze-results && /usr/bin/copr-backend-generate-graphs" - copr >&2 >/dev/null diff --git a/backend/copr-backend.spec b/backend/copr-backend.spec index 9df270e..9de1e4a 100644 --- a/backend/copr-backend.spec +++ b/backend/copr-backend.spec @@ -102,6 +102,7 @@ Requires: redis Requires: rpm-sign Requires: rsync Requires: modulemd-tools >= 0.6 +Recommends: util-linux-core Requires: zstd Requires(post): systemd