Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsr

Requests and limits

A request is the amount of a resource that the scheduler reserves for a workload, and a limit is the cap that cgroups enforce.

Requests and limits are two values that describe how much CPU and memory a workload may use. They are the basis of resource management in Kubernetes, and similar ideas exist in other orchestration systems. A request is the amount that the scheduler reserves for the workload. A limit is the most the workload may use, and the kernel enforces it through cgroups.

The scheduler places a workload only on a node with enough unreserved capacity to cover its requests. At run time, a workload can use more than its request, up to its limit, when spare capacity exists. A workload that goes over its CPU limit is throttled. A workload that goes over its memory limit is killed by the kernel, an event known as an out-of-memory kill.

The gap between requests and limits sets how much a platform overcommits its hosts. Low requests with high limits pack more workloads onto a node, but they risk contention when many workloads are busy together. Requests equal to limits give stable performance at a lower density. Sandbox platforms make the same trade when they size the CPU and memory of each sandbox.

Related terms