Skip to content

Commit 8f0d340

Browse files
committed
Various OpenShift resource limit tweaks
* Decrease COMS max pod count to avoid saturating the shared Postgres connection pool * Remove CPU/memory limits on Postgres pods * Enable pod autoscaling in DEV and PR
1 parent cccc594 commit 8f0d340

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/environments/values.dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ features:
55
oidcAuth: true
66

77
autoscaling:
8-
enabled: false
8+
enabled: true
99
pdb:
10-
enabled: false
10+
enabled: true
1111

1212
config:
1313
enabled: true

.github/environments/values.pr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ features:
33
basicAuth: true
44
oidcAuth: true
55
defaultBucket: false
6+
7+
autoscaling:
8+
enabled: true
9+
pdb:
10+
enabled: true
611
#
712
#
813
# We don't deploy a postgrescluster for PR's

.github/environments/values.prod.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ postgres:
4848
requests:
4949
cpu: 256m
5050
memory: 512Mi
51-
limits:
52-
cpu: 512m
53-
memory: 1024Mi
5451
sidecars:
5552
replicaCertCopy:
5653
resources:

.github/environments/values.test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ postgres:
4949
requests:
5050
cpu: 256m
5151
memory: 512Mi
52-
limits:
53-
cpu: 512m
54-
memory: 1024Mi
5552
sidecars:
5653
replicaCertCopy:
5754
resources:

charts/coms/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ autoscaling:
4545
enabled: false
4646

4747
minReplicas: 3
48-
maxReplicas: 8
48+
maxReplicas: 6
4949
targetCPUUtilizationPercentage: 80
5050

5151
# pod disruption budget.

0 commit comments

Comments
 (0)