﻿# Separate autoscaling stabilization from model warmup

Separate recommendation stabilization, scaling rate, readiness and request draining when explaining model replica changes.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-ks-hpa-stabilization/
Language: en

A model Deployment remains large after a short traffic spike. Operators shorten the HPA stabilization window hoping to accelerate model warmup. These are different mechanisms: stabilization filters recent scaling recommendations, while startup and readiness determine when a new replica can perform useful inference. Diagnose which interval is actually causing the observed behavior.

## Follow recommendation history

Read the effective autoscaling behavior and the recent desired counts. Downscale stabilization considers recent recommendations and preserves the relevant higher demand within its window. It is not simply a fixed sleep after each replica starts. Repeated demand can keep refreshing the history, so identical wall-clock time since a scale event need not imply identical eligibility to shrink.

## Separate rate limits

Scaling policies constrain the amount of change over their configured periods. A stabilization window and a change-rate policy can both affect a decision, but they answer different questions. Inspect scaleUp and scaleDown independently with their selection policy. Avoid attributing every gradual replica change to stabilization when a rate constraint is the actual limiting mechanism.

## Keep readiness truthful

A new replica may still be placing resources, loading weights or preparing runtime state. Startup and readiness probes express application milestones; they do not set the HPA recommendation history. CPU initialization handling is another documented controller concern. Preserve the measured transition to useful service rather than shortening a probe merely to make scaling appear faster.

## Relate capacity to streams

A lower desired count leads the workload controller to remove replicas through normal termination. Stabilization is not a per-request drain budget or a guarantee that a long stream finishes. Keep inference termination policy and observed remaining capacity in the analysis. A replica count can look stable while actual ready throughput changes as individual model instances initialize or leave.

## Validate two traffic shapes

Use a short synthetic spike and a sustained plateau in an isolated workload. Compare recommendations, allowed changes, ready replicas and useful completion capacity. Acceptance means each delay is attributable to its documented mechanism. The chosen window does not predict future demand, eliminate cold starts or establish a universally correct balance between retained warm capacity and resource use.

## Primary references

[Horizontal Pod Autoscaling](https://kubernetes.io/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/).

[Configure Liveness, Readiness and Startup Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).

[Kubernetes Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/).

Related reading: [GPU autoscaling: a free card is not a ready replica](/journal/autoscaling-gpu-cold-start/); [Graceful inference-server termination with active streams](/journal/provider-graceful-termination-active-streams/).
