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

Mint:通过共性与变异性分析实现全请求采集的成本高效追踪

Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability Analysis

Haiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen, Guangba Yu, Zilong He, Yilun Wang, Huxing Zhang, Qi Zhou

AI总结:

针对分布式追踪数据量庞大与信息保留的权衡问题,提出基于“共性+变异性”范式的Mint框架,在代理端实现全请求采集,显著降低存储与网络开销,并保持轻量适用性。

摘要:

分布式追踪包含有价值的信息,但通常数据量巨大,这构成了追踪框架设计中的核心挑战:在保留关键追踪信息与减少追踪数据量之间取得平衡。为解决这一权衡问题,以往的方法通常采用“1或0”的采样策略:保留被采样的追踪,同时完全丢弃未采样的追踪。然而,基于对真实生产环境追踪数据的实证研究,我们发现“1或0”策略实际上未能有效平衡这一权衡。为实现更均衡的结果,我们将策略从“1或0”范式转变为“共性+变异性”范式。“共性+变异性”范式的核心是首先将追踪解析为公共模式和可变参数,然后聚合模式并过滤参数。我们提出了一种成本高效的追踪框架Mint,该框架在代理端实现了“共性+变异性”范式,以实现对所有请求的采集。实验表明,Mint能够采集所有追踪并保留更多追踪信息,同时优化了追踪存储(平均减少至2.7%)和网络开销(平均减少至4.2%)。此外,实验还证明Mint足够轻量,适合生产环境使用。

英文摘要:

Distributed traces contain valuable information but are often massive in volume, posing a core challenge in tracing framework design: balancing the tradeoff between preserving essential trace information and reducing trace volume. To address this tradeoff, previous approaches typically used a '1 or 0' sampling strategy: retaining sampled traces while completely discarding unsampled ones. However, based on an empirical study on real-world production traces, we discover that the '1 or 0' strategy actually fails to effectively balance this tradeoff. To achieve a more balanced outcome, we shift the strategy from the '1 or 0' paradigm to the 'commonality + variability' paradigm. The core of 'commonality + variability' paradigm is to first parse traces into common patterns and variable parameters, then aggregate the patterns and filter the parameters. We propose a cost-efficient tracing framework, Mint, which implements the 'commonality + variability' paradigm on the agent side to enable all requests capturing. Our experiments show that Mint can capture all traces and retain more trace information while optimizing trace storage (reduced to an average of 2.7%) and network overhead (reduced to an average of 4.2%). Moreover, experiments also demonstrate that Mint is lightweight enough for production use.

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

↑