Production-Grade Container Scheduling and Management
Go to file
Kevin Klues 67f719cb1d Fix unit tests following bug fix in CPUManager for map functions (1/2)
This fixes two related tests to better test our "balanced" distribution algorithm.

The first test originally provided an input with the following number of CPUs
available on each NUMA node:

Node 0: 16
Node 1: 20
Node 2: 20
Node 3: 20

It then attempted to distribute 48 CPUs across them with an expectation that
each of the first 3 NUMA nodes would have 16 CPUs taken from them (leaving Node
0 with no more CPUs in the end).

This would have resulted in the following amount of CPUs on each node:

Node 0: 0
Node 1: 4
Node 2: 4
Node 3: 20

Which results in a standard deviation of 7.6811

However, a more balanced solution would actually be to pull 16 CPUs from NUMA
nodes 1, 2, and 3, and leave 0 untouched, i.e.:

Node 0: 16
Node 1: 4
Node 2: 4
Node 3: 4

Which results in a standard deviation of 5.1961524227066

To fix this test we changed the original number of available CPUs to start with
4 less CPUs on NUMA node 3, and 2 more CPUs on NUMA node 0, i.e.:

Node 0: 18
Node 1: 20
Node 2: 20
Node 3: 16

So that we end up with a result of:

Node 0: 2
Node 1: 4
Node 2: 4
Node 3: 16

Which pulls the CPUs from where we want and results in a standard deviation of 5.5452

For the second test, we simply reverse the number of CPUs available for Nodes 0
and 3 as:

Node 0: 16
Node 1: 20
Node 2: 20
Node 3: 18

Which forces the allocation to happen just as it did for the first test, except
now on NUMA nodes 1, 2, and 3 instead of NUMA nodes 0,1, and 2.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-11-24 16:51:23 +00:00
.github OWNERS(justaugustus): Prune extraneous reviewer roles 2021-11-11 12:03:06 -05:00
api Merge pull request #105916 from kevindelgado/validation-unify-all 2021-11-19 14:27:22 -08:00
build test-e2e-node: support pure SSH mode 2021-11-22 10:13:15 -05:00
CHANGELOG CHANGELOG: Update directory for v1.23.0-rc.0 release 2021-11-24 06:19:11 +00:00
cluster turning off default storage class in kube-up 2021-11-16 19:26:30 +00:00
cmd Merge pull request #106520 from pohly/log-print-flags 2021-11-18 01:53:02 -08:00
docs
hack test-e2e-node: support pure SSH mode 2021-11-22 10:13:15 -05:00
LICENSES Pin new dependency: github.com/google/cel-go v0.9.0 2021-11-10 13:15:40 -05:00
logo
pkg Fix unit tests following bug fix in CPUManager for map functions (1/2) 2021-11-24 16:51:23 +00:00
plugin controller change for statefulset auto-delete (implementation) 2021-11-17 16:48:50 -08:00
staging Return BadRequest for invalid large patch 2021-11-21 09:13:37 -05:00
test Merge pull request #106611 from verult/delegate-fsgroup-disable-onrootmismatch-e2e 2021-11-23 17:52:20 -08:00
third_party
vendor Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
.generated_files
.gitattributes
.gitignore
.golangci.yaml fix golangci-lint config file using exclude-rules 2021-11-17 13:58:53 +01:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod generated: ./hack/update-vendor.sh 2021-11-15 15:54:59 -08:00
go.sum generated: ./hack/update-vendor.sh 2021-11-15 15:54:59 -08:00
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Add missing alias - used in staging/src/k8s.io/cluster-bootstrap/OWNERS 2021-11-15 14:50:57 -05:00
README.md
SECURITY_CONTACTS
SUPPORT.md

Kubernetes (K8s)

GoPkg Widget CII Best Practices


Kubernetes, also known as K8s, is an open source system for managing containerized applications across multiple hosts. It provides 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 your company 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 K8s

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To use Kubernetes code as a library in other applications, see the list of published components. Use of the k8s.io/kubernetes module or k8s.io/kubernetes/... packages as libraries is not supported.

To start developing K8s

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.
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
cd 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.