From 5c4211e2796c60235782e6c8be66463a4f52ccfa Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Tue, 31 May 2022 12:40:25 -0400 Subject: [PATCH] openshift/os: increase requested resources The `ostree` operations that happen as part of the `cosa-build` image build are incredibly memory hungry during the `ostree commit` and `ostree container` operations. They are moving upwards of 2G of data into memory and onto disk and vice-versa. The original resource requests were insufficient, causing the CI jobs to be incredibly slow and sometimes even timing out completely. It's been observed that the `ostree container encapsulate` operation ends up requesting nearly 6Gi of memory. This bumps both the memory requests and the CPU requests for the image builds. It should give the jobs some healthy head room to perform the operations at a reasonable pace. --- ci-operator/config/openshift/os/openshift-os-master.yaml | 4 ++-- .../config/openshift/os/openshift-os-master__periodic.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci-operator/config/openshift/os/openshift-os-master.yaml b/ci-operator/config/openshift/os/openshift-os-master.yaml index c14682f6a06d8..6dca4bce7ae83 100644 --- a/ci-operator/config/openshift/os/openshift-os-master.yaml +++ b/ci-operator/config/openshift/os/openshift-os-master.yaml @@ -135,8 +135,8 @@ releases: resources: '*': requests: - cpu: 2000m - memory: 3Gi + cpu: 4000m + memory: 8Gi tests: - as: validate commands: | diff --git a/ci-operator/config/openshift/os/openshift-os-master__periodic.yaml b/ci-operator/config/openshift/os/openshift-os-master__periodic.yaml index aecbeda3ec57d..7976383ad83ba 100644 --- a/ci-operator/config/openshift/os/openshift-os-master__periodic.yaml +++ b/ci-operator/config/openshift/os/openshift-os-master__periodic.yaml @@ -136,8 +136,8 @@ releases: resources: '*': requests: - cpu: 2000m - memory: 3Gi + cpu: 4000m + memory: 8Gi tests: - as: validate commands: |