Closed gabesaba closed 2 weeks ago
Name | Link |
---|---|
Latest commit | 25d59d57280f7916e3fe8fcb02b0d40a2f49f57b |
Latest deploy log | https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/673771af57da550008030873 |
I synced with @gabesaba and did review on a call. The main changes since the initial version were:
&& a.cq.HasParent()
to borrow := a.cq.BorrowingWith(fr, val) && a.cq.HasParent()
Hope this helps, feel free to ask more question in comments if you feel so.
/lgtm /approve
[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
LGTM label has been added.
We are going to cherry-pick this PR along with https://github.com/kubernetes-sigs/kueue/pull/3536
/cherry-pick release-0.9
@mimowo: new pull request created: #3550
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
Preemption
fit mode. Now, it matches how we calculate borrowing forFit
mode. 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 preventsblockedWl
from scheduling.Does this PR introduce a user-facing change?