-
Notifications
You must be signed in to change notification settings - Fork 449
TAS: Add MostAllocated algorithm #4228
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
Conversation
|
/assign @mimowo |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
|
cc @mwysokin for visibility |
|
I'm adding more optimizations to |
|
@gabesaba PTAL |
It's ready for review |
c13f5f2 to
e5fd617
Compare
e5fd617 to
689da52
Compare
e127321 to
1ebef9f
Compare
ACK |
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.
Pretty cool feature
Co-authored-by: Michał Woźniak <[email protected]>
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.
Overall LGTM, left some nits at this point
|
/hold cancel |
42629f8 to
3756e0d
Compare
|
/lgtm |
|
LGTM label has been added. Git tree hash: ab6cd17d4dc295d83fb4220b1468aa291290f564
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, PBundyra, tenzen-y 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 |
* Add info about BestFit algorithm to KEP * Implement BestFit algorithm * Use built-in sort.Search function, add optimizations at every level * Improve bestFit function, add test scenario * Change BestFit into LargestFit, fix a test scenario * Fix checker, correct featureGate name * Adjust new feature gate * Fix tests with changed feature gate * Cleaned up logic * Adjusted test results for the BestFit default algorithm * Change naming LargestFit -> LeastAllocated, BestFit -> MostAllocated * Pick the first MostAllocated domain that can accommodate all pods * Fix linter, improve naming * Simplify logic * Simplify logic, adjust comments * Mark some test scenarios to drop after removing the feature gate * Add TODOs comments, mention dropping the feature gate in GA in KEP * Improve logic, add test * Improve logic * Update keps/2724-topology-aware-scheduling/README.md Co-authored-by: Michał Woźniak <[email protected]> * Address nits * Address nits * Rename feature gate --------- Co-authored-by: Michał Woźniak <[email protected]>
* Add info about BestFit algorithm to KEP * Implement BestFit algorithm * Use built-in sort.Search function, add optimizations at every level * Improve bestFit function, add test scenario * Change BestFit into LargestFit, fix a test scenario * Fix checker, correct featureGate name * Adjust new feature gate * Fix tests with changed feature gate * Cleaned up logic * Adjusted test results for the BestFit default algorithm * Change naming LargestFit -> LeastAllocated, BestFit -> MostAllocated * Pick the first MostAllocated domain that can accommodate all pods * Fix linter, improve naming * Simplify logic * Simplify logic, adjust comments * Mark some test scenarios to drop after removing the feature gate * Add TODOs comments, mention dropping the feature gate in GA in KEP * Improve logic, add test * Improve logic * Update keps/2724-topology-aware-scheduling/README.md Co-authored-by: Michał Woźniak <[email protected]> * Address nits * Address nits * Rename feature gate --------- Co-authored-by: Michał Woźniak <[email protected]>
* Add info about BestFit algorithm to KEP * Implement BestFit algorithm * Use built-in sort.Search function, add optimizations at every level * Improve bestFit function, add test scenario * Change BestFit into LargestFit, fix a test scenario * Fix checker, correct featureGate name * Adjust new feature gate * Fix tests with changed feature gate * Cleaned up logic * Adjusted test results for the BestFit default algorithm * Change naming LargestFit -> LeastAllocated, BestFit -> MostAllocated * Pick the first MostAllocated domain that can accommodate all pods * Fix linter, improve naming * Simplify logic * Simplify logic, adjust comments * Mark some test scenarios to drop after removing the feature gate * Add TODOs comments, mention dropping the feature gate in GA in KEP * Improve logic, add test * Improve logic * Update keps/2724-topology-aware-scheduling/README.md Co-authored-by: Michał Woźniak <[email protected]> * Address nits * Address nits * Rename feature gate --------- Co-authored-by: Michał Woźniak <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces a new default algorithm to TAS (old one gated by the
LargestFitTASfeature flag). This algorithm selects the domain that can accommodate all pods, and has the least amount of free resources, instead of the most amount of free resources, as it's done currently. This helps mitigate the resource fragmentation. The KEP has been updated to reflect these changes.Which issue(s) this PR fixes:
Fixes #3756
Special notes for your reviewer:
Does this PR introduce a user-facing change?