Affinity - CI/CD Glossary Definition
Affinity steers a CI job toward runners that match a desired attribute.
Affinity is a scheduling rule that attracts a job to specific runners, for example placing a job near a warm cache or on a node with a required architecture or GPU.
Affinity rules express a preference or requirement that a job should run on runners with certain characteristics, such as an architecture, a label, or co-location with a cache.
In CI
Affinity is useful for keeping repeated jobs on a runner that already has a warm dependency cache, or pinning ARM builds to ARM runners.
Related guides
Anti-Affinity - CI/CD Glossary DefinitionAnti-Affinity: Anti-affinity is a scheduling rule that keeps jobs apart, for example spreading replicas of a…
Node Selector - CI/CD Glossary DefinitionNode Selector: A node selector is a set of key/value labels that constrains where a job can run, matching it…
Runner Pool - CI/CD Glossary DefinitionRunner Pool: A runner pool is a group of interchangeable runners that share a job queue. Jobs are dispatched…