Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 75aaacc53e
Merge pull request #57215 from misterikkit/topologyBenchmark
Automatic merge from submit-queue (batch tested with PRs 57215, 57489). 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 benchmark tests for PodAntiAffinity rules

**What this PR does / why we need it**:
This adds a benchmark test that measures the scheduling latency of pods with PodAntiAffinity rules where topologyKey=kubernetes.io/hostname.

Additionally, this PR imposes a minimum `b.N` value to make the test results more meaningful.

The benchmark is needed to validate any performance improvements made for #54189.


Command used to invoke:
```sh
make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_ARGS="-run=xxxx -bench=."
```

Sample output:
```
pkg: k8s.io/kubernetes/test/integration/scheduler_perf
BenchmarkScheduling/100Nodes/0Pods-40        100          36316838 ns/op
BenchmarkScheduling/100Nodes/1000Pods-40                     100          69460001 ns/op
BenchmarkScheduling/1000Nodes/0Pods-40                       100         193755560 ns/op
BenchmarkScheduling/1000Nodes/1000Pods-40                    100         343451472 ns/op
BenchmarkSchedulingAntiAffinity/500Nodes/250Pods-40                  250         127236420 ns/op
BenchmarkSchedulingAntiAffinity/500Nodes/5000Pods-40                 250         478661925 ns/op
PASS
ok      k8s.io/kubernetes/test/integration/scheduler_perf       354.008s
```

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

**Special notes for your reviewer**:


**Release note**:

```release-note
NONE
```
2017-12-20 18:31:32 -08:00
.github
api Merge pull request #56860 from bboreham/patch-3 2017-12-20 11:42:42 -08:00
build Add a version string to pause.c 2017-12-19 09:35:28 +01:00
cluster Merge pull request #56259 from msau42/local-ssd 2017-12-20 12:32:35 -08:00
cmd Merge pull request #57221 from mtaufen/kc-event 2017-12-20 17:42:37 -08:00
docs Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
examples gcloud docker now auths k8s.gcr.io by default 2017-12-18 09:18:34 -08:00
Godeps Merge pull request #56814 from liztio/update-systemstat 2017-12-19 14:08:41 -08:00
hack Merge pull request #57417 from fabianofranz/no_longer 2017-12-20 17:42:40 -08:00
logo
pkg Merge pull request #57221 from mtaufen/kc-event 2017-12-20 17:42:37 -08:00
plugin Merge pull request #57368 from brendandburns/version 2017-12-20 14:53:38 -08:00
staging Merge pull request #57407 from kubernetes/revert-57160-etcd-client-3.2.11 2017-12-19 10:36:31 -08:00
test Merge pull request #57215 from misterikkit/topologyBenchmark 2017-12-20 18:31:32 -08:00
third_party
translations
vendor Merge pull request #56814 from liztio/update-systemstat 2017-12-19 14:08:41 -08:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.5.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.6.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.7.md
CHANGELOG-1.8.md
CHANGELOG-1.9.md
CHANGELOG-1.10.md Add CHANGELOG-1.10.md for v1.10.0-alpha.1. 2017-12-18 13:41:16 -08:00
CHANGELOG.md
code-of-conduct.md Update code-of-conduct.md 2017-12-20 13:33:36 -05:00
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES fabiano no longer a thing 2017-12-19 16:37:12 -02:00
README.md
SUPPORT.md
Vagrantfile
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics