copr: per user s390x limit

Fixes: https://github.com/fedora-copr/copr/issues/3066
This commit is contained in:
Pavel Raiskup 2023-12-16 10:41:00 +01:00
parent 79949846e2
commit 416da23f99
2 changed files with 9 additions and 8 deletions

View file

@ -35,14 +35,12 @@ elif grep POWER9 /proc/cpuinfo; then
swap_device=/dev/$swap_device_base
truncate -s 164G "$file"
losetup "$swap_device_base" "$file"
elif test -e /dev/xvda1 && test -e /dev/nvme0n1; then
# AWS aarch64 machine. We use separate volume allocation as the default
# root disk in our instance type is too small.
swap_device=/dev/nvme0n1
elif test -e /dev/nvme1n1; then
# AWS x86_64 machine. There's >= 400G space on the default volume in our
# instance type.
swap_device=/dev/nvme1n1
elif test -e /dev/nvme0n1; then
for vol in /dev/nvme{0,1}n1; do
# Detect there are no partitions
test -e "$vol" || continue
test "$(lsblk -n "$vol" | wc -l)" -eq 1 && swap_device=$vol && break
done
else
# This should be a machine in IBM Cloud
generic_mount

View file

@ -54,6 +54,9 @@ builds_max_workers_arch=
i686={{ (max_x86_64_workers|int / 5)|int }},
ppc64le={{ max_ppc64le_workers }}
# Do not let one user waste the whole architecture capacity
build_max_workers_arch_per_owner=s390x=8
# Maximum number of concurrently running tasks per project owner.
{% if env == 'production' %}
builds_max_workers_owner=90