Skip to content
Latchkey

Bin Packing (Scheduling) - CI/CD Glossary Definition

Bin packing schedules jobs onto as few runners as possible without exceeding limits.

Bin packing in scheduling is placing jobs onto runners so each machine is filled close to its resource limits, minimizing the number of runners needed to hold the workload.

Bin packing is an optimization strategy that treats each runner as a fixed-size bin (CPU, memory) and packs jobs to reduce wasted capacity and total machine count.

Trade-off

Tight bin packing lowers cost but leaves little headroom, so a job that spikes can trigger the out-of-memory killer. Leave slack for bursty CI jobs.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →