From a5e1fd6eb04a19442090a50463dcb5b6e5c4577e Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 8 Feb 2023 22:00:00 +0100 Subject: [PATCH] chore: limit number of active tasks --- k8s/inventory/ci_workers.yaml | 2 +- k8s/roles/concourse/templates/values.concourse.yml.j2 | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/k8s/inventory/ci_workers.yaml b/k8s/inventory/ci_workers.yaml index 16852d1..35c7859 100644 --- a/k8s/inventory/ci_workers.yaml +++ b/k8s/inventory/ci_workers.yaml @@ -1,7 +1,7 @@ all: vars: ansible_user: root - concourse_version: "7.9.0" + concourse_version: "7.9.1" children: concourse_workers: hosts: diff --git a/k8s/roles/concourse/templates/values.concourse.yml.j2 b/k8s/roles/concourse/templates/values.concourse.yml.j2 index 105d008..c0113eb 100644 --- a/k8s/roles/concourse/templates/values.concourse.yml.j2 +++ b/k8s/roles/concourse/templates/values.concourse.yml.j2 @@ -20,6 +20,10 @@ worker: concourse: web: externalUrl: https://concourse.icb4dc0.de + containerPlacementStrategies: + - limit-active-tasks + - fewest-build-containers + limitActiveTasks: 2 auth: mainTeam: oidc: @@ -40,8 +44,11 @@ concourse: teams: - main - inetmock + gc: + failedGracePeriod: 30s worker: runtime: containerd + persistence: enabled: true worker: