Gleaner:一种语义丰富且高效的在线采样器用于微服务诊断
Gleaner: A Semantically-Rich and Efficient Online Sampler for Microservice Diagnostics
AI总结:
Gleaner通过将追踪表示为增强的边袋,结合警报驱动配额和多样性保留策略,提升了微服务诊断的采样效率和信号增强能力。
摘要:
微服务分布式追踪对诊断至关重要,但生成的数据量巨大,需要智能采样。为最大化保真度,最先进的尾部采样器通过将追踪建模为图来分析完整或日志增强的追踪。然而,这种对计算昂贵的图分析的依赖导致性能瓶颈,限制了其在在线设置中的使用。为此,我们提出了Gleaner,一种在线尾部采样框架,打破了这一权衡。它基于关键洞察,即显式图结构对于高保真追踪分组是不必要的。相反,Gleaner将每个追踪表示为“边的袋”并增强日志语义,用高效的集合操作替代缓慢的图算法。它还采用警报驱动配额和多样性保留策略,优先处理异常和罕见的追踪以供后续根本原因分析(RCA)。实验表明,Gleaner每个追踪处理时间为0.74ms,比基线提升了高达128.7%的追踪模式覆盖度和32.9%的香农熵。在仅1%的采样率下,Gleaner比次优采样器提高了42%-107%的RCA准确性。此外,Gleaner的采样数据的RCA准确性优于整个未采样的数据集。这一结果将智能采样从数据减少技术重新定义为自动化运营中的强大信号增强范式。
英文摘要:
Distributed tracing in microservices is critical for diagnostics but generates overwhelming data volumes, necessitating intelligent sampling. To maximize fidelity, state-of-the-art (SOTA) tail-based samplers analyze complete (or even log-enriched) traces by modeling them as graphs. However, this reliance on computationally expensive graph analysis creates a performance bottleneck that prohibits their use in online settings. To this end, we propose Gleaner, an online tail-sampling framework that breaks this trade-off. It is founded on the key insight that explicit graph structures are unnecessary for high-fidelity trace grouping. Instead, Gleaner represents each trace as a "bag-of-edges" augmented with log semantics, replacing slow graph algorithms with highly efficient set-based operations. It also employs an alarm-driven quota and a diversity-preserving strategy to prioritize anomalous and rare traces for downstream Root Cause Analysis (RCA). Experimentally, Gleaner processes traces at 0.74ms each, improving Trace Pattern Coverage by up to 128.7% and Shannon Entropy by up to 32.9% over baselines. At just a 1% sampling rate, Gleaner improves RCA accuracy by 42%-107% over the next-best sampler. Moreover, RCA on Gleaner's sampled data is more accurate than with the entire, unsampled dataset. This result reframes intelligent sampling from a data reduction technique to a powerful signal enhancement paradigm for automated operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。