arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.26336cs.SE
收藏

UniSage: 一种统一且事后分析感知的微服务采样

UniSage: A Unified and Diagnosis-Driven Sampling Framework for Microservice Systems

The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳));The Chinese University of Hong Kong(香港中文大学)

Zhouruixing Zhu, Zhihan Jiang, Tianyi Yang, Pinjia He

AI总结:

UniSage通过整合追踪和日志,结合轻量级异常检测模块,实现事后分析感知的统一采样框架,显著提升数据保留率和实用性。

摘要:

追踪和日志是微服务架构可观测性的核心,但其庞大的体积给存储和计算带来了极大的负担。为了减少开销,操作人员依赖采样;然而,当前的框架通常采用先采样再分析的策略。这种方法存在根本性的权衡:为了节省空间,系统必须在知道其诊断价值之前丢弃数据,常常丢失排查异常和延迟峰值所需的关键上下文。在本文中,我们提出了UniSage,一种统一的采样框架,通过采用事后分析感知的范式来解决这一权衡。不同于以往仅关注追踪的工作,UniSage整合了追踪和日志,利用一个轻量级的异常检测和根本原因分析模块,在做出采样决策之前扫描完整的数据流。这种预计算使得双支柱策略成为可能:一个由分析引导的采样器,保留与检测到的异常相关的高价值数据,以及一个处理边缘情况的采样器,保留罕见但关键的行为以确保多样性。在三个数据集上的评估证实,UniSage实现了优越的数据保留。在2.5%的采样率下,UniSage捕获了71%的关键追踪和96.25%的相关日志,显著超过了现有最佳方法(分别达到42.9%和1.95%)。此外,在一个真实世界的数据集上的评估证明了UniSage的效率;它在平均10秒内处理一个20分钟的多模态数据块,使其在生产环境中具有实用性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑