Skip to content

Commit 7b31aa0

Browse files
committed
feat(RELEASE-2035): add cpu limits to internal tasks
Set limits.cpu = requests.cpu for internal task steps to ensure predictable resource allocation. Changes: - Added CPU limits to 16 internal task files - Increased requests for high-usage steps like create-advisory, filter-already-released-advisory-images Part of the same effort as managed tasks PR, split for easier review and CI stability. Assisted by: Cursor Signed-off-by: Happy Bhati <hbhati@redhat.com>
1 parent 2814c6e commit 7b31aa0

File tree

16 files changed

+32
-3
lines changed

16 files changed

+32
-3
lines changed

tasks/internal/check-embargoed-cves-task/check-embargoed-cves-task.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ spec:
5656
computeResources:
5757
limits:
5858
memory: 32Mi
59+
cpu: 20m
5960
requests:
6061
memory: 32Mi
6162
cpu: 20m

tasks/internal/check-fbc-opt-in/check-fbc-opt-in.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ spec:
7777
computeResources:
7878
limits:
7979
memory: 512Mi
80+
cpu: 200m
8081
requests:
8182
memory: 512Mi
8283
cpu: 200m

tasks/internal/check-signing-certificates/check-signing-certificates.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
computeResources:
4242
limits:
4343
memory: 128Mi
44+
cpu: 100m
4445
requests:
4546
memory: 128Mi
4647
cpu: 100m

tasks/internal/collect-blob-signing-params/collect-blob-signing-params.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
computeResources:
4949
limits:
5050
memory: 64Mi
51+
cpu: 25m
5152
requests:
5253
memory: 64Mi
5354
cpu: 25m

tasks/internal/collect-simple-signing-params/collect-simple-signing-params.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ spec:
7070
computeResources:
7171
limits:
7272
memory: 64Mi
73+
cpu: 25m
7374
requests:
7475
memory: 64Mi
7576
cpu: 25m

tasks/internal/create-advisory-oci-artifact-task/create-advisory-oci-artifact-task.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ spec:
6666
computeResources:
6767
limits:
6868
memory: 256Mi
69+
cpu: 150m
6970
requests:
7071
memory: 256Mi
7172
cpu: 150m

tasks/internal/create-advisory-task/create-advisory-task.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ spec:
9090
computeResources:
9191
limits:
9292
memory: 256Mi
93+
cpu: '1'
9394
requests:
9495
memory: 256Mi
95-
cpu: '1' # 1 is the max allowed by at least the staging cluster
96+
cpu: '1'
9697
volumeMounts:
9798
- name: advisory-secret
9899
mountPath: /mnt/advisory_secret

tasks/internal/filter-already-released-advisory-images-task/filter-already-released-advisory-images-task.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ spec:
7070
computeResources:
7171
limits:
7272
memory: 256Mi
73+
cpu: '1'
7374
requests:
7475
memory: 256Mi
75-
cpu: 500m
76+
cpu: '1'
7677
volumeMounts:
7778
- name: advisory-secret
7879
mountPath: /mnt/advisory_secret

tasks/internal/get-advisory-severity/get-advisory-severity.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ spec:
6161
computeResources:
6262
limits:
6363
memory: 128Mi
64+
cpu: '1'
6465
requests:
6566
memory: 128Mi
6667
cpu: '1' # 1 is the max allowed by at least the staging cluster

tasks/internal/process-file-updates-task/process-file-updates-task.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ spec:
8484
computeResources:
8585
limits:
8686
memory: 512Mi
87+
cpu: 250m
8788
requests:
8889
memory: 512Mi
8990
cpu: 250m

0 commit comments

Comments
 (0)