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
Fix scheduler performance regression after adding plugin metrics #117594
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/priority important-soon |
cf2d91a
to
97e7df9
Compare
/lgtm |
Thanks! |
LGTM label has been added. Git tree hash: e6755f451b6c36992939e4ce07997ca394169ee8
|
97e7df9
to
0848990
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just nits for code consistency
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, tosi3k The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0848990
to
28519e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 288b65e8961dcbc1218e69331ecde83474d8667b
|
Please open a cherry-pick for release-1.27 |
…94-upstream-release-1.27 Automated cherry pick of #117594: Fix scheduler performance regression after adding plugin
What type of PR is this?
/kind bug
What this PR does / why we need it:
In #117592 we see that the
WithLabelValues
generates visible CPU load in scheduler, negatively impacting the pod scheduling throughput.Instead of performing metric lookup unnecessarily many times, let's cache the particular streams inside the filter and prefilter plugins.
Which issue(s) this PR fixes:
Fixes #117592.
Special notes for your reviewer:
/assign @alculquicondor
/assign @mborsz
/kind bug
/sig scheduling
Does this PR introduce a user-facing change?