Skip to content

Commit

Permalink
RHCLOUD-36454 | feature: allow setting resource requests and limits f…
Browse files Browse the repository at this point in the history
…or Floorist (#3155)

* feature: allow setting resource requests and limits for Floorist

The pods need a way to be able to adjust their resource requests and
limits, in case they run out of resources while running.

RHCLOUD-36454

* fix: missing default values for memory resources

RHCLOUD-36454
  • Loading branch information
MikelAlejoBR authored Dec 3, 2024
1 parent 6472804 commit a15b67b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .rhcicd/floorist/floorplan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ objects:
secretName: ${FLOORIST_DB_SECRET_NAME}
objectStore:
secretName: ${FLOORIST_BUCKET_SECRET_NAME}
resources:
limits:
cpu: ${FLOORIST_CPU_LIMIT}
memory: ${FLOORIST_MEMORY_LIMIT}
requests:
cpu: ${FLOORIST_CPU_REQUEST}
memory: ${FLOORIST_MEMORY_REQUEST}
suspend: ${{FLOORIST_SUSPEND}}
queries:
# List the behavior groups and the event type they are associated with
Expand Down Expand Up @@ -225,6 +232,13 @@ objects:
secretName: ${FLOORIST_DB_SECRET_NAME}
objectStore:
secretName: ${FLOORIST_HMS_BUCKET_SECRET_NAME}
resources:
limits:
cpu: ${FLOORIST_CPU_LIMIT}
memory: ${FLOORIST_MEMORY_LIMIT}
requests:
cpu: ${FLOORIST_CPU_REQUEST}
memory: ${FLOORIST_MEMORY_REQUEST}
logLevel: ${FLOORIST_LOGLEVEL}
suspend: ${{FLOORIST_SUSPEND}}
queries:
Expand Down Expand Up @@ -271,6 +285,12 @@ parameters:
description: Floorist's S3 bucket's secret name
required: true
value: dummy-secret
- name: FLOORIST_CPU_REQUEST
description: The amount of minimum CPU requested for running the FloorPlan.
value: 50m
- name: FLOORIST_CPU_LIMIT
description: The maximum amount of CPU that the FloorPlan is allowed to use before it gets throttled.
value: 100m
- name: FLOORIST_DB_SECRET_NAME
description: The database's secret name specification for the Floorist operator.
value: notifications-backend-db
Expand All @@ -283,6 +303,12 @@ parameters:
- name: FLOORIST_LOGLEVEL
description: Floorist loglevel config
value: 'INFO'
- name: FLOORIST_MEMORY_REQUEST
description: The amount of minimum memory requested for running the FloorPlan.
value: 250Mi
- name: FLOORIST_MEMORY_LIMIT
description: The maximum amount of memory that the FloorPlan is allowed to use before getting "out of memory" errors.
value: 500Mi
- name: FLOORIST_SUSPEND
description: Disable Floorist cronjob execution
required: true
Expand Down

0 comments on commit a15b67b

Please sign in to comment.