Skip to content

Commit

Permalink
Merge pull request #866 from bcgov/feature/tune-up-resource-requests
Browse files Browse the repository at this point in the history
[Helm] Resource allocation and autoscaling tune-up
  • Loading branch information
i5okie authored Oct 12, 2023
2 parents da1fc2d + 1f671ce commit a82a28f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
30 changes: 15 additions & 15 deletions charts/traction/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ acapy:
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
stabilizationWindowSeconds: 300
Expand Down Expand Up @@ -281,10 +281,10 @@ acapy:
resources:
limits:
cpu: 300m
memory: 512Mi
memory: 300Mi
requests:
cpu: 120m
memory: 128Mi
memory: 200Mi
## @param acapy.podAnnotations Map of annotations to add to the acapy pods
##
podAnnotations: {}
Expand Down Expand Up @@ -461,7 +461,7 @@ tenant_proxy:
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 5
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
stabilizationWindowSeconds: 300
Expand Down Expand Up @@ -532,11 +532,11 @@ tenant_proxy:
##
resources:
limits:
cpu: 250m
memory: 256Mi
cpu: 100m
memory: 50Mi
requests:
cpu: 125m
memory: 128Mi
cpu: 10m
memory: 50Mi

## @section Tenant Proxy NetworkPolicy parameters

Expand Down Expand Up @@ -706,10 +706,10 @@ ui:
resources:
limits:
cpu: 300m
memory: 256Mi
memory: 128Mi
requests:
cpu: 10m
memory: 16Mi
memory: 80Mi
## @param ui.replicaCount Number of tenant-ui replicas to deploy. Ignored if autoscaling is enabled.
##
replicaCount: 1
Expand All @@ -724,7 +724,7 @@ ui:
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 5
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
## @param ui.nodeSelector Node labels for tenant-ui pods assignment
Expand Down Expand Up @@ -860,11 +860,11 @@ postgresql:
##
resources:
limits:
cpu: 600m
memory: 2600Mi
cpu: 500m
memory: 500Mi
requests:
cpu: 300m
memory: 1300Mi
cpu: 100m
memory: 100Mi
## @param postgresql.primary.service.ports.postgresql PostgreSQL service port
##
service:
Expand Down
12 changes: 6 additions & 6 deletions deploy/traction/values-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ acapy:
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 5
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
networkPolicy:
Expand Down Expand Up @@ -67,7 +67,7 @@ ui:
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 5
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
ingress:
Expand All @@ -76,8 +76,8 @@ ingress:
postgresql:
resources:
limits:
cpu: 400m
memory: 1600Mi
cpu: 500m
memory: 500Mi
requests:
cpu: 200m
memory: 820Mi
cpu: 100m
memory: 100Mi
16 changes: 8 additions & 8 deletions deploy/traction/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ acapy:
resources:
limits:
cpu: 200m
memory: 512Mi
memory: 300Mi
requests:
cpu: 120m
memory: 128Mi
Expand Down Expand Up @@ -68,11 +68,11 @@ ui:
innkeeperInbox: lucas.o'[email protected]
resources:
limits:
cpu: 200m
memory: 820Mi
cpu: 300m
memory: 128Mi
requests:
cpu: 120m
memory: 400Mi
cpu: 10m
memory: 80Mi
ingress:
annotations:
route.openshift.io/termination: edge
Expand All @@ -90,7 +90,7 @@ postgresql:
resources:
limits:
cpu: 200m
memory: 820Mi
memory: 128Mi
requests:
cpu: 120m
memory: 400Mi
cpu: 100m
memory: 50Mi

0 comments on commit a82a28f

Please sign in to comment.