Decomposing Predictive Kubernetes Autoscaling for Large Language Model Serving Under Long Startup Delays
Abstract
Large language model (LLM) inference deployed on Kubernetes faces an autoscaling challenge that conventional web services do not: new serving replicas take two to ten minutes to start because multi-gigabyte model weights must be loaded, which makes purely reactive scaling structurally late. We ask a sharp question: among the components of a predictive autoscaler, which ones actually matter under such long actuation delays? We answer it by decomposing predictive autoscaling into four factors---token-aware demand tracking, startup-delay lookahead, a bounded uncertainty margin, and plant-state observation---and measuring each factor's contribution in isolation on production-derived heavy-tailed workloads generated by ServeGen. Our main finding is that a simple exponentially weighted moving average (EWMA) predictor with delay-aware lookahead and an upper confidence bound (UCB) margin captures most of the benefit, reducing time-to-first-token (TTFT) service-level-objective (SLO) violations from 53% (reactive, queries-per-second based) to 0.5% across five random seeds; lookahead alone is the single largest factor, a 14 reduction. Kalman filter variants do not consistently improve the cost--SLO tradeoff. Controlled experiments isolate the reason token granularity is necessary: context length, through key--value cache pressure, degrades TTFT far more than request rate at matched throughput. Finally, a validation on a real Kubernetes cluster (Qwen2.5-7B, A100, vLLM) confirms the central mechanism: a delay-aware lookahead controller cuts TTFT violations from 63.5\% to 3.7\% relative to reactive KEDA scaling. We distinguish throughout which findings are specific to Kubernetes actuation and which are general to LLM serving.
Create a lesson
Metadata
- Categories
- cs.PF, cs.DC
- Comments
- accepted by CloudCom 2026
Related papers
ServeCast: Predicting LLM Serving Throughput and Latency Across Models from Microbenchmarks
Shared title terminologycs.PFEmilio Incerto, Lishan Yang, Yu Sun et al.
How Reliable Are Large Language Models for Soil Organic Carbon Assessment? An Australian Benchmark
Shared title terminologycs.PFYingxuan Cheng, Tong Li, Yayong Li et al.
An Approximate Queueing Model of LLM Inference Serving for SLO-Driven Autoscaling
Shared title terminologycs.PFVishakha Ramani, Asser N. Tantawi
The Brain That Goes Quiet: Serving a Large Model's Knowledge at 131 Tokens per Second on an 8 GB Laptop by Removing the Large Model from the Runtime Path
Shared title terminologycs.PFMyeong Jun Jo
HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV Caching
Shared title terminologycs.PFHaoxuan Xu, Shaoyu Wang, Minghao Lin et al.
Measuring and Charging for Retained Context in Long-Context LLM Services
Shared title terminologycs.PFYi Lu, Qianshi Lin, Yumeng Yang et al.