k3s/test
Kubernetes Submit Queue 8c1bfeb0cf
Merge pull request #66733 from bsalamat/subset_nodes
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 a feature to the scheduler to score fewer than all nodes in every scheduling cycle

**What this PR does / why we need it**:
Today, the scheduler scores all the nodes in the cluster in every scheduling cycle (every time a posd is attempted). This feature implements a mechanism in the scheduler that allows scoring fewer than all nodes in the cluster. The scheduler stops searching for more nodes once the configured number of feasible nodes are found. This can help improve the scheduler's performance in large clusters (several hundred nodes and larger).
This PR also adds a new structure to the scheduler's cache, called NodeTree, that allows scheduler to iterate over various nodes in different zones in a cluster. This is needed to avoid scoring the same set of nodes in every scheduling cycle.

**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 #66627 

**Special notes for your reviewer**:
This is a large PR, but broken into a few logical commits. Reviewing would be easier if you review by commits.

**Release note**:

```release-note
Add a feature to the scheduler to score fewer than all nodes in every scheduling cycle. This can improve performance of the scheduler in large clusters.
```
2018-08-17 17:21:32 -07:00
..
cmd Merge pull request #66876 from juanvallejo/jvallejo/prototype-plugins 2018-08-17 11:58:22 -07:00
conformance Merge pull request #67100 from mkurylec/promotion-lifecycle-hook-to-conformance 2018-08-16 11:57:28 -07:00
e2e Merge pull request #67540 from mborsz/wait3 2018-08-17 13:23:09 -07:00
e2e_kubeadm Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
e2e_node Merge pull request #67426 from yanxuean/check-both-err 2018-08-16 11:57:32 -07:00
fixtures add updated plugin mechanism 2018-08-15 15:06:29 -04:00
images add admissionv1beta1 in scheme 2018-08-14 08:25:54 -07:00
integration Merge pull request #66733 from bsalamat/subset_nodes 2018-08-17 17:21:32 -07:00
kubemark Kubemark: don't recreate hollow node on VM reboot. 2018-08-16 10:45:32 +02:00
list
soak Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
typecheck
utils Remove ARCH specific image consideration from e2e tests 2018-08-09 13:40:19 -04:00
BUILD move test-cmd guts to separate sig-cli maintained directory 2018-07-05 11:38:26 -04:00
OWNERS
test_owners.csv Remove the Heapster/InfluxDB test 2018-07-13 16:07:33 -04:00
test_owners.json