-
Notifications
You must be signed in to change notification settings - Fork 478
Prioritize Workload which fits in its CQ's Nominal Capacity #3547
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
Prioritize Workload which fits in its CQ's Nominal Capacity #3547
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
2e78f0a to
cac6df1
Compare
cac6df1 to
25d59d5
Compare
|
I synced with @gabesaba and did review on a call. The main changes since the initial version were:
Hope this helps, feel free to ask more question in comments if you feel so. /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabesaba, mimowo 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 label has been added. Git tree hash: ac0f7b4cf0e067a2d008edbd4b25b6cdf4b2232d
|
|
We are going to cherry-pick this PR along with #3536 |
|
/cherry-pick release-0.9 |
|
@mimowo: new pull request created: #3550 In response to this:
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-sigs/prow repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
We fix the calculation of borrowing in FlavorAssignment for
Preemptionfit mode. Now, it matches how we calculate borrowing forFitmode. This ensures that a workload which fits within its CQ's nominal capacity is sorted before an earlier created workload which pushes its CQ over nominal capacity. This sorting is important as this borrowing workload may invalidate the non-borrowing workload's preemption calculationsWhich issue(s) this PR fixes:
Fixes #3405
Special notes for your reviewer:
We tweak an integ test which relied on details of FlavorAssigner's borrowing calculations for ordering. By updating the priority of
pendingWl, we ensure that it reservers resources and preventsblockedWlfrom scheduling.Does this PR introduce a user-facing change?