UniSage: A Unified and Diagnosis-Driven Sampling Framework for Microservice Systems
Zhouruixing Zhu, Zhihan Jiang, Tianyi Yang, Pinjia He
原文摘要
Traces and logs are essential observability signals for diagnosing microservice failures, but their massive volume makes full retention prohibitively expensive. Sampling is therefore widely used to reduce storage and analysis overhead. However, existing sampling frameworks suffer from two key limitations. First, they typically follow a sample-before-analysis paradigm, where data is discarded before its diagnostic value is known, risking the loss of critical evidence for downstream analysis. Second, they mainly focus on trace sampling, while logs are either compressed or filtered independently, which can break the contextual linkage between anomalous traces and their explanatory log messages. To address these limitations, we propose UniSage, a unified and diagnosis-driven sampling framework for microservice systems. UniSage is unified in two senses: it integrates lightweight analysis into the sampling pipeline to guide retention decisions, and it jointly samples traces and logs by exploiting their cross-modal correlations. Evaluations on three multi-modal microservice datasets show that UniSage consistently preserves more diagnostic evidence under tight budgets. At the 5% budget, UniSage improves average diagnostic trace recall by 6.8%-22.0% over existing trace sampling baselines and achieves the highest diagnostic log recall on the evaluated log-labeled datasets. UniSage also remains practical, with runtime measurements showing modest overhead across the evaluated workloads.
cs.SE