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
Use original requests in NodeResourcesBalancedAllocation
instead of NonZeroRequested
#105845
Use original requests in NodeResourcesBalancedAllocation
instead of NonZeroRequested
#105845
Conversation
@ahmad-diaa: 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. |
5b59607
to
b3a7088
Compare
NodeResourcesBalancedAllocation
instead of NonZeroRequested
NodeResourcesBalancedAllocation
instead of NonZeroRequested
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.
do we have enough coverage with the existing test cases?
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
Outdated
Show resolved
Hide resolved
I think we do, I was thinking about adding a test for the case in #105220 but it seems to be an integration test case that is hard to cover via a unit test. Is this correct? |
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.
I think we do, I was thinking about adding a test for the case in #105220 but it seems to be an integration test case that is hard to cover via a unit test. Is this correct?
Yeah, we can leave that as a follow up
pkg/scheduler/util/pod_resources.go
Outdated
// what is provided on the request. | ||
// useRequested overrides the behaviour of the function where requested value is returned as is. | ||
// nonZero overrides the behaviour of the function where requested value is returned as is if nonZero is false. |
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.
kind of awkward wording
Better say the opposite way:
If nonZero is true and the resource has no defined request for CPU or memory, it returns a default value.
/label tide/merge-method-squash /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmad-diaa, alculquicondor 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 |
/lgtm |
88b0a3d
to
a3b417d
Compare
/lgtm |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
Can you create a cherry-pick for 1.22? |
Sure, will do that later today. |
…105845-upstream-release-1.22 Automated cherry pick of #105845: use original requests in NodeResourcesBalancedAllocation
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixing a regression bug from #102925 where pods are not evenly distributed.
Which issue(s) this PR fixes:
Fixes #105220
Does this PR introduce a user-facing change?
/sig scheduling