Production Context & Why This Matters
Naive Spot instance adoption saves money until AWS reclaims capacity across a single popular instance family simultaneously, starving critical ingress pods.
Combining Karpenter NodePools with wide instance-family diversification, priority fallbacks to On-Demand, and AWS Node Termination Handler graceful draining shields tail-latency SLOs cleanly.
Architectural Mechanics & Reference Implementation
Our standard production blueprint splits guaranteed On-Demand capacity for quorum primaries while routing stateless elastic replicas onto diversified Spot pools.
spec:
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot", "on-demand"]
- key: karpenter.k8s.aws/instance-category
operator: In
values: ["c", "m", "r"]
Verified Operational Benchmarks
Continuous consolidation compacted fragmented workloads onto fewer, fuller nodes, reducing idle CPU waste from 49% down to 14%.
- Primary Delta: 54% compute savings on staging and 38% net savings on production workloads
- Reliability Gate: Zero customer-facing request drops during 2-minute EC2 Spot interruptions
- Ownership Boundary: 100% client-owned IaC & telemetry pipelines audited by Avtar Singh
Implementation Checklist
- Spread Spot pools across at least 6 distinct instance families and multiple sizes.
- Keep stateful databases and core ingress controllers pinned on On-Demand/Savings Plans.
- Test graceful SIGTERM pod shutdown hooks against real 120s drain timers.