SkyServe: Serving AI Models across Regions and Clouds with Spot Instances
Ziming Mao, Tian Xia, Zhanghao Wu, Wei-Lin Chiang, Tyler Griggs, Romil Bhardwaj, Zongheng Yang, Scott Shenker, Ion Stoica
TL;DR
This work tackles the high cost and reliability challenges of serving AI inference on spot GPUs by proposing SpotHedge, a policy that dynamically places spot replicas across multiple regions and clouds and maintains a flexible mix with on-demand replicas. The SkyServe system implements SpotHedge, providing provisioning, autoscaling, and load balancing to sustain availability and QoS while leveraging spot cost savings. Through end-to-end cloud experiments and trace-based simulations, the approach achieves significant improvements: approximately $43\%$ cost reductions and up to $2.3\times$ (P50) latency improvements compared to on-demand baselines, with consistently low failure rates. The practical impact is substantial, enabling economical, resilient multi-region AI serving and offering an open-source platform to foster further research in spot-based inference serving across clouds.
Abstract
Recent years have witnessed an explosive growth of AI models. The high cost of hosting AI services on GPUs and their demanding service requirements, make it timely and challenging to lower service costs and guarantee service quality. While spot instances have long been offered with a large discount, spot preemptions have discouraged users from using them to host model replicas when serving AI models. To address this, we propose a simple yet efficient policy, SpotHedge, that leverages spot replicas across different failure domains (e.g., regions and clouds) to ensure availability, lower costs, and high service quality. SpotHedge intelligently spreads spot replicas across different regions and clouds to improve availability and reduce correlated preemptions, overprovisions cheap spot replicas than required as a safeguard against possible preemptions, and dynamically falls back to on-demand replicas when spot replicas become unavailable. We built SkyServe, a system leveraging SpotHedge to efficiently serve AI models over a mixture of spot and on-demand replicas across regions and clouds. We compared SkyServe with both research and production systems on real AI workloads: SkyServe reduces cost by 43% on average while achieving high resource availability compared to using on-demand replicas. Additionally, SkyServe improves P50, P90, and P99 latency by 2.3$\times$, 2.1$\times$, 2.1$\times$ on average compared to other research and production systems.
