Queue-Depth-Driven GPU Autoscaling (Kubernetes KEDA, Karpenter, Prometheus Custom Metrics) governs dynamic compute elasticity across heavy generative workloads, harmonizing strict queue wait SLAs with aggressive multi-million-dollar cloud GPU cost optimizations; standard CPU/GPU-utilization HPAs fail because a GPU running a single task reports 100% load, blind to 5,000 pending backlog requests; KEDA continuously monitors message queue backlog depth (
L) and target queue latency (
Ttarget) to derive required GPU replicas:
R=⌈C×TtargetL⌉ (
C is single-GPU throughput), leveraging pre-warmed container pools and Spot GPU instances for elastic cluster scaling.