k3s/pkg/scheduler
Kubernetes Submit Queue 5911f87dad
Merge pull request #56926 from wgliang/master
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.
```
2018-01-14 04:53:05 -08:00
..
algorithm Refactor HostIP predicate algorithm 2018-01-08 17:10:21 -08:00
algorithmprovider
api -Add scheduler optimization options, short circuit all predicates if one predicate fails 2018-01-13 18:18:55 +08:00
core -Add scheduler optimization options, short circuit all predicates if one predicate fails 2018-01-13 18:18:55 +08:00
factory -Add scheduler optimization options, short circuit all predicates if one predicate fails 2018-01-13 18:18:55 +08:00
metrics Added metrics for preemption victims, pods preempted and duration of preemption 2018-01-13 12:27:11 +05:30
schedulercache Merge pull request #58061 from ravisantoshgudimetla/fix-57152 2018-01-12 23:50:37 -08:00
testing
util Refactor HostIP predicate algorithm 2018-01-08 17:10:21 -08:00
volumebinder
BUILD
OWNERS
scheduler.go Added metrics for preemption victims, pods preempted and duration of preemption 2018-01-13 12:27:11 +05:30
scheduler_test.go -Add scheduler optimization options, short circuit all predicates if one predicate fails 2018-01-13 18:18:55 +08:00
testutil.go