Skip to content

Commit

Permalink
Parametrized CPU and Memory resource usage in the backend app
Browse files Browse the repository at this point in the history
  • Loading branch information
Fynardo committed Nov 25, 2024
1 parent 1d18bf6 commit 085e28a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .rhcicd/clowdapp-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ objects:
podSpec:
resources:
requests:
cpu: 100m
memory: 100Mi
cpu: ${DB_CLEANER_CPU_REQUEST}
memory: ${DB_CLEANER_MEMORY_REQUEST}
limits:
cpu: 200m
memory: 200Mi
cpu: ${DB_CLEANER_CPU_LIMIT}
memory: ${DB_CLEANER_MEMORY_LIMIT}
image: quay.io/cloudservices/postgresql-rds:12
volumes:
- name: notifications-db-cleaner-volume
Expand Down Expand Up @@ -242,6 +242,18 @@ parameters:
- name: DB_CLEANER_SCHEDULE
description: Execution time specified in cron format
value: "0 */6 * * *"
- name: DB_CLEANER_CPU_LIMIT
description: CPU limit of the DB cleaner Cronjob
value: 200m
- name: DB_CLEANER_CPU_REQUEST
description: CPU requested by the DB cleaner Cronjob
value: 100m
- name: DB_CLEANER_MEMORY_LIMIT
description: Memory limit of the DB cleaner Cronjob
value: 200Mi
- name: DB_CLEANER_MEMORY_REQUEST
description: Memory requested by the DB cleaner Cronjob
value: 100Mi
- name: DISABLE_DB_CLEANER
description: Should the DB cleaner CronJob be disabled?
value: "false"
Expand Down

0 comments on commit 085e28a

Please sign in to comment.