mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. -Add scheduler optimization options, short circuit all predicates if … …one predicate fails Signed-off-by: Wang Guoliang <iamwgliang@gmail.com> **What this PR does / why we need it**: Short circuit all predicates if one predicate fails. I think we can add a switch to control it, maybe some scenes do not need to know all the causes of failure, but also can get a great performance improvement; if you need to fully understand the reasons for the failure, and accept the current performance requirements, can maintain the current logic. It should expose this switch to the user. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #56889 and #48186 **Special notes for your reviewer**: @davidopp **Release note**: ``` Allow scheduler set AlwaysCheckAllPredicates, short circuit all predicates if one predicate fails can greatly improve the scheduling performance. ``` |
||
---|---|---|
.. | ||
algorithm | ||
algorithmprovider | ||
api | ||
core | ||
factory | ||
metrics | ||
schedulercache | ||
testing | ||
util | ||
volumebinder | ||
BUILD | ||
OWNERS | ||
scheduler.go | ||
scheduler_test.go | ||
testutil.go |