Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Kubernetes CPU requests and limits, explained through cgroups

The article explains Kubernetes CPU requests and limits by linking them directly to Linux cgroups. It clarifies that requests are used for scheduling and setting the CPU bandwidth (CFS quota), while limits cap a pod's CPU usage. Through practical examples with the docker and cgroup filesystem, it demonstrates how these Kubernetes abstractions translate into actual kernel mechanisms.

Background

This article explains how Kubernetes CPU requests and limits actually work under the hood using Linux cgroups (control groups), which are the kernel-level mechanism that enforces resource constraints on containers.