Morphis: SLO-Aware Resource Scheduling for Microservices with Time-Varying Call Graphs
Yu Tang, Hailiang Zhao, Rui Shi, Chuansheng Lu, Yifei Zhang, Kingsum Chow, Shuiguang Deng
TL;DR
Morphis addresses the challenge of dynamic microservice call graphs by uncovering latent, recurrent invocation patterns and decomposing traces into a stable backbone plus deviation subgraphs. It couples structural fingerprinting with a latency-aware resource model and pattern-based load forecasting to drive a global optimization that coordinates per-service latency targets under end-to-end SLO constraints. The framework demonstrates up to $38\%$ CPU savings while maintaining high SLO compliance ($\ge 95\%$) on the TrainTicket benchmark, outperforming reactive and static-baseline autoscalers. This pattern-driven, end-to-end approach enables proactive, coordinated provisioning in evolving microservice topologies, with strong practical implications for cloud-native platforms.
Abstract
Modern microservice systems exhibit continuous structural evolution in their runtime call graphs due to workload fluctuations, fault responses, and deployment activities. Despite this complexity, our analysis of over 500,000 production traces from ByteDance reveals a latent regularity: execution paths concentrate around a small set of recurring invocation patterns. However, existing resource management approaches fail to exploit this structure. Industrial autoscalers like Kubernetes HPA ignore inter-service dependencies, while recent academic methods often assume static topologies, rendering them ineffective under dynamic execution contexts. In this work, we propose Morphis, a dependency-aware provisioning framework that unifies pattern-aware trace analysis with global optimization. It introduces structural fingerprinting that decomposes traces into a stable execution backbone and interpretable deviation subgraphs. Then, resource allocation is formulated as a constrained optimization problem over predicted pattern distributions, jointly minimizing aggregate CPU usage while satisfying end-to-end tail-latency SLOs. Our extensive evaluations on the TrainTicket benchmark demonstrate that Morphis reduces CPU consumption by 35-38% compared to state-of-the-art baselines while maintaining 98.8% SLO compliance.
