Skip to content

Commit

Permalink
ci: improve and upgrade deployments limits (#216)
Browse files Browse the repository at this point in the history
* ci: improve and upgrade deployments limits

* fix: memory request que limit for database

* fix: memory request and limits for backend and oracle-api
  • Loading branch information
Ricardo Campos authored and DerekRoberts committed May 14, 2024
1 parent 90b6019 commit 02a71b2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ parameters:
- name: CPU_LIMIT
value: 75m
- name: MEMORY_REQUEST
value: 50Mi
value: 100Mi
- name: MEMORY_LIMIT
value: 250Mi
- name: MIN_REPLICAS
Expand Down Expand Up @@ -151,7 +151,7 @@ objects:
path: /actuator/health
port: 8090
scheme: HTTP
initialDelaySeconds: 150
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 10
livenessProbe:
Expand All @@ -161,7 +161,7 @@ objects:
path: /actuator/health
port: 8090
scheme: HTTP
initialDelaySeconds: 150
initialDelaySeconds: 20
periodSeconds: 30
timeoutSeconds: 10
- apiVersion: v1
Expand Down
10 changes: 6 additions & 4 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ parameters:
- name: CPU_LIMIT
value: 115m
- name: MEMORY_REQUEST
value: 25Mi
- name: MEMORY_LIMIT
value: 50Mi
- name: MEMORY_LIMIT
value: 100Mi
- name: DB_PVC_SIZE
description: Volume space available for data, e.g. 512Mi, 2Gi.
displayName: Database Volume Capacity
Expand Down Expand Up @@ -123,8 +123,9 @@ objects:
- bash
- "-c"
- psql -q -U $POSTGRES_USER -d $POSTGRES_DB -c 'SELECT 1'
successThreshold: 1
failureThreshold: 5
initialDelaySeconds: 30
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 1
livenessProbe:
Expand All @@ -134,8 +135,9 @@ objects:
- bash
- "-c"
- psql -q $POSTGRES_USER -d $POSTGRES_DB -c 'SELECT 1'
successThreshold: 1
failureThreshold: 5
initialDelaySeconds: 30
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 1
env:
Expand Down
6 changes: 3 additions & 3 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ parameters:
- name: DOMAIN
value: apps.silver.devops.gov.bc.ca
- name: CPU_REQUEST
value: 5m
value: 15m
- name: CPU_LIMIT
value: 10m
value: 30m
- name: MEMORY_REQUEST
value: 30Mi
- name: MEMORY_LIMIT
value: 40Mi
value: 50Mi
- name: MIN_REPLICAS
description: The minimum amount of replicas for the horizontal pod autoscaler.
value: "3"
Expand Down
4 changes: 2 additions & 2 deletions oracle-api/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ parameters:
- name: CPU_LIMIT
value: 175m
- name: MEMORY_REQUEST
value: 150Mi
- name: MEMORY_LIMIT
value: 300Mi
- name: MEMORY_LIMIT
value: 400Mi
- name: REGISTRY
description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000)
value: ghcr.io
Expand Down

0 comments on commit 02a71b2

Please sign in to comment.