anti-affinity
A scheduling rule that keeps copies of the same service on different machines, racks or zones.
In more detail
Without it, one rack or node can take every copy of a service with it. In Kubernetes it is expressed as pod anti-affinity or topology spread constraints.
Related terms
- failure domain — A group of components that can fail together because they share something, such as a rack, power supply or zone.
- Pod — The smallest unit Kubernetes runs: one or more containers scheduled together on the same machine.
Taught in
- Two Domain Controllers, One Host: Virtualisation — CompTIA Cloud+ (CV0-004) Exam Prep
- Architecture Sprint: Ten Faults Before Friday — CompTIA Cloud+ (CV0-004) Exam Prep
- Capacity Planning As A Design Input — Scalable System Design & Distributed Architecture
References
- Kubernetes documentation: Assigning Pods to Nodes (affinity and anti-affinity)
- Kubernetes documentation: Pod topology spread constraints