Production-Grade Container Scheduling and Management
Go to file
Kevin Klues 031f11513d Fix accounting bug in CPUManager distribute NUMA policy
Without this fix, the algorithm may decide to allocate "remainder" CPUs from a
NUMA node that has no more CPUs to allocate. Moreover, it was only considering
allocation of remainder CPUs from NUMA nodes such that each NUMA node in the
remainderSet could only allocate 1 (i.e. 'cpuGroupSize') more CPUs. With these
two issues in play, one could end up with an accounting error where not enough
CPUs were allocated by the time the algorithm runs to completion.

The updated algorithm will now omit any NUMA nodes that have 0 CPUs left from
the set of NUMA nodes considered for allocating remainder CPUs. Additionally,
we now consider *all* combinations of nodes from the remainder set of size
1..len(remainderSet). This allows us to find a better solution if allocating
CPUs from a smaller set leads to a more balanced allocation. Finally, we loop
through all NUMA nodes 1-by-1 in the remainderSet until all rmeainer CPUs have
been accounted for and allocated. This ensure that we will not hit an
accounting error later on because we explicitly remove CPUs from the remainder
set until there are none left.

A follow-on commit adds a set of unit tests that will fail before these
changes, but succeeds after them.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-11-24 19:18:11 +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 accounting bug in CPUManager distribute NUMA policy 2021-11-24 19:18:11 +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.