LA-IMR: Latency-Aware, Predictive In-Memory Routing and Proactive Autoscaling for Tail-Latency-Sensitive Cloud Robotics
Eunil Seo, Chanh Nguyen, Erik Elmroth
TL;DR
LA-IMR tackles tail latency in hybrid edge–cloud AI inference by coupling a closed-form, utilisation-driven latency model with an in-memory, SLO-aware control loop that routes requests, offloads traffic, and scales replicas proactively. The end-to-end latency is decomposed into processing, network, and queueing components, enabling two complementary latency functions $g_{m,i}(\boldsymbol{\lambda})$ and $g_{m,i}(N_{m,i})$ to guide millisecond-scale routing and capacity planning. A quality-differentiated multi-queue scheduler and a custom-metric Kubernetes autoscaler enable just-in-time scaling, reducing P99 latency by up to $20.7\%$ and substantially lowering tail variance on bursty vision workloads like YOLOv5m and EfficientDet. Experiments across a cloud–edge continuum validate that predictive routing and proactive autoscaling suppress long-tail spikes, delivering more stable, tail-tolerant cloud robotics inference services.
Abstract
Hybrid cloud-edge infrastructures now support latency-critical workloads ranging from autonomous vehicles and surgical robotics to immersive AR/VR. However, they continue to experience crippling long-tail latency spikes whenever bursty request streams exceed the capacity of heterogeneous edge and cloud tiers. To address these long-tail latency issues, we present Latency-Aware, Predictive In-Memory Routing and Proactive Autoscaling (LA-IMR). This control layer integrates a closed-form, utilization-driven latency model with event-driven scheduling, replica autoscaling, and edge-to-cloud offloading to mitigate 99th-percentile (P99) delays. Our analytic model decomposes end-to-end latency into processing, network, and queuing components, expressing inference latency as an affine power-law function of instance utilization. Once calibrated, it produces two complementary functions that drive: (i) millisecond-scale routing decisions for traffic offloading, and (ii) capacity planning that jointly determines replica pool sizes. LA-IMR enacts these decisions through a quality-differentiated, multi-queue scheduler and a custom-metric Kubernetes autoscaler that scales replicas proactively -- before queues build up -- rather than reactively based on lagging CPU metrics. Across representative vision workloads (YOLOv5m and EfficientDet) and bursty arrival traces, LA-IMR reduces P99 latency by up to 20.7 percent compared to traditional latency-only autoscaling, laying a principled foundation for next-generation, tail-tolerant cloud-edge inference services.
