← All Insights

PRIMESHIFT INSIGHTS · May 13, 2026

Spot & On-Demand Karpenter Bin-Packing Without Violating Tail-Latency p99 SLOs

Structuring diversified Spot instance pools and On-Demand base capacity using Karpenter NodePools to cut compute costs safely.

Isometric multi-cluster Kubernetes compute and cloud FinOps topology schematic
WED, MAY 13, 2026·7 min read·Cloud & FinOps·Issue #25 · Kubernetes & FinOps
Dispatch Issue #25 · Key Metric: 54% compute savings on staging and 38% net savings on production workloads

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.
About the Author

Avtar Singh

Senior Systems Engineer & Head of Engineering Operations

Senior Systems Engineer overseeing day-to-day infrastructure operations, SRE incident response, Kubernetes unit-margin telemetry, and zero-downtime production cutovers across PrimeShift Digital enterprise pods.

Read All Stories by Avtar Singh →

In This Dispatch

Evaluating this architecture inside your production stack?

Our Principal Engineering Desk runs two-week topology audits directly inside your organization cloud & GitHub repos.