Skip to content

Commit

Permalink
Increase production api memeory request/limit and adjust 1 hour early… (
Browse files Browse the repository at this point in the history
#625)

Increase production api memeory request/limit and adjust 1 hour early for -work-flow-state-change-batch
  • Loading branch information
ianliuwk1019 authored May 3, 2024
1 parent 9645c1b commit 66e4137
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
-p URL=fom.nrs.gov.bc.ca
-p AWS_USER_POOLS_WEB_CLIENT_ID="4bu2n8at3m32a2fqnvd4t06la1"
-p LOGOUT_CHAIN_URL="https://logon7.gov.bc.ca/clp-cgi/logoff.cgi?retnow=1&returl=https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/logout?redirect_uri="
-p MEMORY_REQUEST=650Mi
-p MEMORY_LIMIT=2Gi
post_rollout: oc create job "certbot-manual-$(date +%s)" --from=cronjob/certbot
- name: admin
file: admin/openshift.deploy.yml
Expand Down
6 changes: 5 additions & 1 deletion api/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ parameters:
value: 30m
- name: MEMORY_REQUEST
value: 150Mi
- name: MEMORY_LIMIT
value: 1Gi
- name: REGISTRY
description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000)
value: ghcr.io
Expand Down Expand Up @@ -230,6 +232,8 @@ objects:
- containerPort: ${{PORT}}
protocol: TCP
resources:
limits:
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
Expand Down Expand Up @@ -312,7 +316,7 @@ objects:
name: ${NAME}-${ZONE}-work-flow-state-change-batch
spec:
concurrencyPolicy: Replace
schedule: "${CRON_MINUTES} 9 * * * " # Run daily at 9:xx AM UTC
schedule: "${CRON_MINUTES} 8 * * * " # Run daily at 8:xx AM UTC
jobTemplate:
spec:
template:
Expand Down

0 comments on commit 66e4137

Please sign in to comment.