Skip to content

Commit

Permalink
chore(ci): resources and scaling (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Aug 13, 2024
1 parent 7dca040 commit 6af5432
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
14 changes: 10 additions & 4 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ parameters:
- name: FORESTCLIENTAPI_ADDRESS
value: "https://nr-forest-client-api-prod.api.gov.bc.ca/api"
- name: CPU_REQUEST
value: 100m
value: 15m
- name: CPU_LIMIT
value: 300m
value: 60m
- name: MEMORY_REQUEST
value: 100Mi
value: 150Mi
- name: MEMORY_LIMIT
value: 500Mi
value: 450Mi
- name: MIN_REPLICAS
description: The minimum amount of replicas for the horizontal pod autoscaler.
value: "3"
Expand Down Expand Up @@ -204,3 +204,9 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
8 changes: 4 additions & 4 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ parameters:
description: Where to mount the PVC, subpath (e.g. data/)
value: /var/lib/postgresql
- name: CPU_REQUEST
value: 50m
value: 25m
- name: CPU_LIMIT
value: 115m
value: 75m
- name: MEMORY_REQUEST
value: 150Mi
value: 100Mi
- name: MEMORY_LIMIT
value: 250Mi
value: 200Mi
- name: DB_PVC_SIZE
description: Volume space available for data, e.g. 512Mi, 2Gi.
displayName: Database Volume Capacity
Expand Down
10 changes: 8 additions & 2 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ parameters:
- name: CPU_LIMIT
value: 30m
- name: MEMORY_REQUEST
value: 30Mi
value: 20Mi
- name: MEMORY_LIMIT
value: 50Mi
value: 40Mi
- name: MIN_REPLICAS
description: The minimum amount of replicas for the horizontal pod autoscaler.
value: "3"
Expand Down Expand Up @@ -166,6 +166,12 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand Down
14 changes: 10 additions & 4 deletions oracle-api/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ parameters:
- name: DOMAIN
value: apps.silver.devops.gov.bc.ca
- name: CPU_REQUEST
value: 100m
value: 15m
- name: CPU_LIMIT
value: 500m
value: 50m
- name: MEMORY_REQUEST
value: 300Mi
value: 150Mi
- name: MEMORY_LIMIT
value: 500Mi
value: 225Mi
- name: ALLOWED_ORIGINS
description: Sets all the allowed request origins
value: "http://localhost:300*,https://*.apps.silver.devops.gov.bc.ca,https://*.nrs.gov.bc.ca"
Expand Down Expand Up @@ -236,3 +236,9 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80

0 comments on commit 6af5432

Please sign in to comment.