Skip to content

Commit

Permalink
Bump crunchy resources, limit to 1 replica again (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
conbrad authored Jan 31, 2024
1 parent b582b63 commit fd77d75
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openshift/scripts/oc_deploy_to_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MODULE_NAME=web bash $(dirname ${0})/oc_promote.sh ${SUFFIX} ${RUN_TYPE}
# Using pmtiles now, TODO: remove once pmtiles is satisfactory in prod over sometime
# MODULE_NAME=tileserv bash $(dirname ${0})/oc_promote.sh ${SUFFIX} ${RUN_TYPE}
echo Provision database
PROJ_TARGET=${PROJ_TARGET} BUCKET=lwzrin DATA_SIZE=45Gi WAL_SIZE=15Gi bash $(dirname ${0})/oc_provision_crunchy.sh prod ${RUN_TYPE}
PROJ_TARGET=${PROJ_TARGET} BUCKET=lwzrin CPU_REQUEST=75m CPU_LIMIT=2000m MEMORY_REQUEST=2Gi MEMORY_LIMIT=16Gi DATA_SIZE=45Gi WAL_SIZE=15Gi bash $(dirname ${0})/oc_provision_crunchy.sh prod ${RUN_TYPE}
CPU_REQUEST=75m CPU_LIMIT=2000m MEMORY_REQUEST=2Gi MEMORY_LIMIT=16Gi PVC_SIZE=45Gi PROJ_TARGET=${PROJ_TARGET} bash $(dirname ${0})/oc_provision_db.sh prod ${RUN_TYPE}
# Using pmtiles now, TODO: remove once pmtiles is satisfactory in prod over sometime
# echo Provision tileserv
Expand Down
25 changes: 24 additions & 1 deletion openshift/templates/crunchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ parameters:
- name: WAL_SIZE
description: WAL PVC size
required: true
- name: CPU_REQUEST
description: |
Starting amount of CPU the container can use.
displayName: CPU REQUEST
value: "50m"
- name: CPU_LIMIT
description: Maximum amount of CPU the container can use.
displayName: CPU Limit
value: "250m"
- name: MEMORY_REQUEST
description: Starting amount of memory the container can use.
displayName: Memory Request
value: 256Mi
- name: MEMORY_LIMIT
description: Maximum amount of memory the container can use.
displayName: Memory Limit
value: 1Gi
- name: SUFFIX
description: Deployment suffix, e.g. pr-###
required: true
Expand Down Expand Up @@ -71,7 +88,13 @@ objects:
postgresVersion: 14
instances:
- name: crunchy
replicas: 3
replicas: 1
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
Expand Down

0 comments on commit fd77d75

Please sign in to comment.