A canary rollout with balanced resource requests

A canary deployment needs room for 23 simultaneous replicas. Its 0.95 vCPU and 3.8 GiB requests match the CPU-to-memory ratio of the worker pool.

Jump to results

Inputs

Pod workload
vCPU
GiB
vCPU
GiB
Worker node pool

Subtract system pods from the workload pod cap if they count against the node’s limit.

%
%
USD/hour

Results

Runs in your browser
Workers needed
5nodes 4 packed · 1 spare
Pods per worker
7pods CPU + Memory limiting
Node cost
$1,423.50/ month

Combined pod limits exceed packed capacity. Test what happens when many pods burst together.

Node packing by resource
Node packing by resource23 pods on 4 workers with 1 spare. CPU + Memory sets the pod limit.Packed worker × 37 podsCPURAMPartial worker2 podsCPURAMFailure reserve0 podsCPURAMCPU requestRAM requestReservedOpen
Detailed results
Allocatable CPU per worker6.96 vCPU
Allocatable memory per worker27.84 GiB
Slots from CPU requests7 pods
Slots from memory requests7 pods
Packed worker CPU requested78.484 %
Packed worker memory requested78.484 %
Unused packed CPU5.99 vCPU
Unused packed memory23.96 GiB
CPU limits / packed allocatable115.661 %
Memory limits / packed allocatable99.138 %

What to try

Seven replicas fit per worker under both constraints. Enter the peak rollout pod count, including surge replicas, so the partial worker in the chart reflects maximum concurrent demand.

How the estimate works

Pods per node = min(CPU slots, memory slots, pod cap)

Node allocatable is the preset capacity minus the combined kubelet, OS, and DaemonSet shares. The workload uses identical pods, so rounding each resource’s slot count down gives an exact fit under these assumptions.

Limits estimate burst demand. Kubernetes uses requests to place pods. The chart shows one fully packed worker, any partially packed worker, and the optional spare.

Unused capacity on the packed workers measures the cost of resource imbalance and partially filled nodes. N+1 covers one worker failure under this model. Model zones, affinities, storage, and topology spread separately. Cost uses 730 hours per month.

Frequently asked questions

Do terminating replicas count toward canary rollout capacity?

They can still hold their node allocation while terminating. Include that overlap in the peak when a drain or shutdown grace period is long.

Why do CPU and memory both limit this canary pool?

The pod request ratio matches the worker ratio, and the model applies equal percentages of reservation to both resources. Both reach the same integer slot count.

Open Kubernetes node sizing calculator