Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-autoscaler

Autoscaler Internals (HPA, KEDA Event Scaling & Karpenter Node Provisioning)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Autoscaler Internals (HPA, KEDA Event Scaling & Karpenter Node Provisioning) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-autoscaler/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-autoscaler)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-autoscaler)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-autoscaler" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Autoscaler Internals (HPA, KEDA Event Scaling & Karpenter Node Provisioning) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Metrics & Queue Lag"]
  n1_1["HPA / KEDA Controller"]
  n2a_2[("Stabilization Guard")]
  n2b_3["Karpenter Provisioner"]
  n3_4["Pod Disruption Budget"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Eval · PromQL"| n1_1
  n1_1 -->|"2a. Dampen · Window"| n2a_2
  n1_1 -.->|"2b. Launch · EC2 API"| n2b_3
  n2a_2 -->|"3a. Drain safe · K8s"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Metrics & Queue LagSTATELESS
    CPU, RPS & Kafka Lag
  • HPA / KEDA ControllerSTATELESS
    Computes desired replicas every 15s
  • Stabilization GuardSTATEFUL
    Fast scale-up · 5m scale-down
  • Karpenter ProvisionerSTATELESS
    Bin-packs unschedulable pods -> VM
  • Pod Disruption BudgetSTATELESS
    Safe consolidation & minAvailable
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Metrics & Queue Lag → HPA / KEDA Controller (Eval)[PromQL]
  2. HPA / KEDA Controller → Stabilization Guard (Dampen)[Window]
  3. HPA / KEDA Controller → Karpenter Provisioner (Launch)[EC2 API]
  4. Stabilization Guard → Pod Disruption Budget (Drain safe)[K8s]
  5. Karpenter Provisioner → Pod Disruption Budget (Sync)[Control]
  6. Pod Disruption Budget → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →