From b1d0d6c626cd9494efb60eac48e24e3090840ecd Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 23 Oct 2023 22:05:00 +0200 Subject: [PATCH] copr-be: enable high-performance builders in prod --- roles/copr/backend/templates/resalloc/pools.yaml | 4 ++-- roles/copr/frontend/templates/copr.conf | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index 9a8dfeb108..5be6b72910 100644 --- a/roles/copr/backend/templates/resalloc/pools.yaml +++ b/roles/copr/backend/templates/resalloc/pools.yaml @@ -6,8 +6,8 @@ aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot max_starting: {{ max_starting }} max_prealloc: {{ max_prealloc }} {% else %} - max: 1 - max_starting: 1 + max: 10 + max_starting: 4 {% endif %} tags: - name: copr_builder diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index 98360272fd..ca1d6c645b 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -199,4 +199,14 @@ EXTRA_BUILDCHROOT_TAGS = [{ "pattern": "@copr/measure-hv-p08.*/.*/.*", "tags": ["arch_power8"], }] +{% else %} +EXTRA_BUILDCHROOT_TAGS = [{ + # https://github.com/fedora-copr/copr/issues/2966 + "pattern": "@asahi/kernel/.*(x86_64|aarch64)/kernel", + "tags": ["on_demand_powerful"], +}, { + # https://github.com/fedora-copr/copr/issues/2966 + "pattern": "ngompa/fedora-asahi-dev/.*(x86_64|aarch64)/kernel", + "tags": ["on_demand_powerful"], +}] {% endif %}