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
Resource Request - CI/CD Glossary DefinitionResource Request: A resource request is the amount of CPU and memory a job asks for so the scheduler can rese…
Resource Limit - CI/CD Glossary DefinitionResource Limit: A resource limit is the maximum CPU or memory a job may use. Exceeding a memory limit trigger…
Affinity - CI/CD Glossary DefinitionAffinity: Affinity is a scheduling rule that attracts a job to specific runners, for example placing a job ne…