Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADR-46] Parametrize CPU and Memory resource usage in clowdapps #3142

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading