Skip to content

Commit

Permalink
chore: resource adjustment, remove limits as it is now removed from p…
Browse files Browse the repository at this point in the history
…latform (#875)

Signed-off-by: Sukanya Rath <[email protected]>
  • Loading branch information
sukanya-rath authored Dec 11, 2024
1 parent bea26d2 commit 3320506
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 199 deletions.
76 changes: 18 additions & 58 deletions charts/fin-pay-transparency/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,17 @@ backend:
port: 80
targetPort: 3000
resources:
limits:
requests:
cpu: 150m
memory: 500Mi
requests:
cpu: 50m
memory: 250Mi
initResources:
limits:
cpu: 350m
memory: 250Mi
requests:
cpu: 150m
memory: 100Mi
memory: 200Mi

autoscaling:
enabled: true
minReplicas: 3
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 60 # this percentage from request cpu
storage:
Expand Down Expand Up @@ -133,17 +127,14 @@ frontend:
port: 80
targetPort: 3000
resources:
limits:
cpu: 50m
memory: 150Mi
requests:
cpu: 15m
memory: 50Mi
cpu: 50m
memory: 120Mi
env:
logLevel: info
autoscaling:
enabled: true
minReplicas: 3
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 80 # this percentage from request cpu
podSecurityContext: {}
Expand All @@ -158,7 +149,6 @@ admin-frontend:
env:
isAdminDashboardAvailable: true
isAdminAnalyticsAvailable: true
isAdminAnalyticsAvailable: true
database:
enabled: false
crunchy:
Expand Down Expand Up @@ -186,21 +176,15 @@ crunchy:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9187"
replicas: 3
replicas: 2
dataVolumeClaimSpec:
storage: 500Mi
storageClassName: netapp-block-standard
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
cpu: 100m
memory: 256Mi
replicaCertCopy:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 32Mi

Expand Down Expand Up @@ -232,31 +216,19 @@ crunchy:
storageClassName: netapp-file-backup
config:
requests:
cpu: 5m
cpu: 10m
memory: 32Mi
limits:
cpu: 20m
memory: 64Mi
repoHost:
requests:
cpu: 5m
memory: 32Mi
limits:
cpu: 20m
cpu: 10m
memory: 64Mi
sidecars:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 64Mi
cpu: 10m
memory: 32Mi
jobs:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
cpu: 50m
memory: 64Mi

patroni:
Expand All @@ -277,21 +249,15 @@ crunchy:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 32Mi

# Postgres Cluster resource values:
pgmonitor:
enabled: true
exporter:
image: # it's not necessary to specify an image as the images specified in the Crunchy Postgres Operator will be pulled by default
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 35m
memory: 32Mi
cpu: 25m
memory: 50Mi
doc-gen-service:
enabled: true
deploymentStrategy: Recreate
Expand All @@ -310,12 +276,9 @@ doc-gen-service:
port: 80
targetPort: 3000
resources:
limits:
cpu: 600m
memory: 350Mi
requests:
cpu: 100m
memory: 50Mi
cpu: 300m
memory: 500Mi

podSecurityContext: {}
securityContext: {}
Expand All @@ -341,12 +304,9 @@ backend-external:
port: 80
targetPort: 3000
resources:
limits:
requests:
cpu: 20m
memory: 150Mi
requests:
cpu: 10m
memory: 50Mi
app:
env:
logLevel: info
Expand Down
26 changes: 4 additions & 22 deletions charts/fin-pay-transparency/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,10 @@ global:
backend:
deploymentStrategy: Recreate
initResources:
limits:
cpu: 350m
memory: 500Mi
requests:
cpu: 150m
memory: 250Mi
resources:
limits:
cpu: 100m
memory: 500Mi
requests:
cpu: 50m
memory: 250Mi
Expand All @@ -63,9 +57,6 @@ backend:
frontend:
deploymentStrategy: Recreate
resources:
limits:
cpu: 30m
memory: 150Mi
requests:
cpu: 15m
memory: 50Mi
Expand All @@ -76,12 +67,9 @@ frontend:
admin-frontend:
deploymentStrategy: Recreate
resources:
limits:
cpu: 30m
memory: 150Mi
requests:
cpu: 15m
memory: 50Mi
memory: 100Mi
env:
logLevel: info
pdb: false
Expand All @@ -106,11 +94,8 @@ database:
tolerations: []
affinity: {}
resources:
limits:
cpu: 150m
memory: 250Mi
requests:
cpu: 30m
cpu: 50m
memory: 100Mi
persistence:
enabled: true
Expand Down Expand Up @@ -139,12 +124,9 @@ doc-gen-service:
port: 80
targetPort: 3000
resources:
limits:
cpu: 300m
memory: 350Mi
requests:
cpu: 30m
memory: 50Mi
cpu: 50m
memory: 250Mi

podSecurityContext: {}
securityContext: {}
Expand Down
69 changes: 15 additions & 54 deletions charts/fin-pay-transparency/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,13 @@ backend:
port: 80
targetPort: 3000
resources:
limits:
cpu: 200m
memory: 600Mi
requests:
cpu: 30m
memory: 500Mi
cpu: 150m
memory: 600Mi
initResources:
limits:
cpu: 200m
memory: 250Mi
requests:
cpu: 30m
memory: 100Mi
cpu: 150m
memory: 200Mi

autoscaling:
enabled: true
Expand Down Expand Up @@ -134,12 +128,9 @@ frontend:
port: 80
targetPort: 3000
resources:
limits:
cpu: 50m
memory: 150Mi
requests:
cpu: 15m
memory: 50Mi
cpu: 50m
memory: 120Mi
env:
logLevel: info
snowplowUrl: spt.apps.gov.bc.ca
Expand Down Expand Up @@ -194,17 +185,11 @@ crunchy:
storage: 600Mi
storageClassName: netapp-block-standard
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
cpu: 100m
memory: 300Mi
replicaCertCopy:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 32Mi

pgBackRest:
Expand Down Expand Up @@ -237,29 +222,17 @@ crunchy:
requests:
cpu: 5m
memory: 32Mi
limits:
cpu: 20m
memory: 64Mi
repoHost:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
sidecars:
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 64Mi
cpu: 10m
memory: 32Mi
jobs:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
cpu: 100m
memory: 256Mi
patroni:
postgresql:
Expand All @@ -278,9 +251,6 @@ crunchy:
replicas: 1
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 20m
memory: 32Mi

# Postgres Cluster resource values:
Expand All @@ -289,10 +259,7 @@ crunchy:
exporter:
image: # it's not necessary to specify an image as the images specified in the Crunchy Postgres Operator will be pulled by default
requests:
cpu: 5m
memory: 16Mi
limits:
cpu: 35m
cpu: 25m
memory: 32Mi
doc-gen-service:
enabled: true
Expand All @@ -312,12 +279,9 @@ doc-gen-service:
port: 80
targetPort: 3000
resources:
limits:
cpu: 650m
memory: 350Mi
requests:
cpu: 100m
memory: 50Mi
cpu: 500m
memory: 400Mi

podSecurityContext: {}
securityContext: {}
Expand All @@ -343,12 +307,9 @@ backend-external:
port: 80
targetPort: 3000
resources:
limits:
requests:
cpu: 20m
memory: 150Mi
requests:
cpu: 10m
memory: 50Mi
app:
env:
logLevel: info
Expand Down
Loading

0 comments on commit 3320506

Please sign in to comment.