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

perf: unset CPU limit #2326

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Conversation

acpana
Copy link
Contributor

@acpana acpana commented Oct 11, 2022

Signed-off-by: Alex Pana 8968914+acpana@users.noreply.github.com

What this PR does / why we need it:

This diff removes cpu limits on g8r resources. Unsetting the cpu limit is desirable. This is because a predefined limit for a cgroup impacts the parent cgroup too. In turn, having a set cpu limit can result in weird quota exhaustions, without actually exhaustive the cpu resource.


Refs: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
@acpana acpana changed the title unset CPU limit perf: unset CPU limit Oct 11, 2022
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Base: 53.39% // Head: 53.36% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (3d45773) compared to base (a7df641).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2326      +/-   ##
==========================================
- Coverage   53.39%   53.36%   -0.03%     
==========================================
  Files         116      116              
  Lines       10174    10174              
==========================================
- Hits         5432     5429       -3     
- Misses       4322     4324       +2     
- Partials      420      421       +1     
Flag Coverage Δ
unittests 53.36% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/readiness/list.go 79.41% <0.00%> (-11.77%) ⬇️
pkg/readiness/object_tracker.go 82.91% <0.00%> (-1.07%) ⬇️
...onstrainttemplate/constrainttemplate_controller.go 55.74% <0.00%> (+0.95%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR!

@maxsmythe maxsmythe merged commit 74f650d into open-policy-agent:master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants