Skip to content

Bump default memory limit for controller manager to 512Mi#1447

Closed
stuggi wants to merge 1 commit into
openstack-k8s-operators:mainfrom
stuggi:bump_mem_limit
Closed

Bump default memory limit for controller manager to 512Mi#1447
stuggi wants to merge 1 commit into
openstack-k8s-operators:mainfrom
stuggi:bump_mem_limit

Conversation

@stuggi

@stuggi stuggi commented May 21, 2025

Copy link
Copy Markdown
Contributor

In tests it was seen that the openstack-operator controller manager reaches just bellow the current set limit of 256Mi. This change bumps the default to 512Mi for all controller managers, except the openstack-operator-controller-operator which could be customized using the CSV. It also introduces a MANAGER_MEMORY_LIMIT env var in the CSV which can be used to change the memory limit of all the other controller managers.

Jira: OSPRH-16802

In tests it was seen that the openstack-operator controller manager
reaches just bellow the current set limit of 256Mi. This change
bumps the default to 512Mi for all controller managers, except
the openstack-operator-controller-operator which could be customized
using the CSV. It also introduces a MANAGER_MEMORY_LIMIT env var
in the CSV which can be used to change the memory limit of all
the other controller managers.

Jira: OSPRH-16802

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@stuggi stuggi requested a review from dprince May 21, 2025 14:56
@openshift-ci openshift-ci Bot requested review from bshephar and viroel May 21, 2025 14:56
@openshift-ci

openshift-ci Bot commented May 21, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@stuggi stuggi requested review from abays and removed request for bshephar and viroel May 21, 2025 14:57
@dprince

dprince commented May 21, 2025

Copy link
Copy Markdown
Contributor

@stuggi should we only bump the controller-manager for openstack-operator-controller-manager which manages the largest amount or resources where we actually hit the limit. It seems like over reservation of memory for all controller managers could lead to less utilization in compact OCP clusters where we have namespace isolation.

@stuggi stuggi closed this May 21, 2025
memory: '{{ $managerMemoryLimit }}'
requests:
cpu: 10m
memory: 128Mi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stuggi also, I think you would want to bump 'requests' too right?

@stuggi

stuggi commented May 21, 2025

Copy link
Copy Markdown
Contributor Author

going with #1449 for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants