TraStrainer: Adaptive Sampling for Distributed Traces with System Runtime State

Author:

Huang Haiyu1ORCID,Zhang Xiaoyu2ORCID,Chen Pengfei1ORCID,He Zilong1ORCID,Chen Zhiming1ORCID,Yu Guangba1ORCID,Chen Hongyang1ORCID,Sun Chen3ORCID

Affiliation:

1. Sun Yat-sen University, Guangzhou, China

2. Huawei, Shenzhen, China

3. Huawei, Beijing, China

Abstract

Distributed tracing has been widely adopted in many microservice systems and plays an important role in monitoring and analyzing the system. However, trace data often come in large volumes, incurring substantial computational and storage costs. To reduce the quantity of traces, trace sampling has become a prominent topic of discussion, and several methods have been proposed in prior work. To attain higher-quality sampling outcomes, biased sampling has gained more attention compared to random sampling. Previous biased sampling methods primarily considered the importance of traces based on diversity, aiming to sample more edge-case traces and fewer common-case traces. However, we contend that relying solely on trace diversity for sampling is insufficient, system runtime state is another crucial factor that needs to be considered, especially in cases of system failures. In this study, we introduce TraStrainer, an online sampler that takes into account both system runtime state and trace diversity. TraStrainer employs an interpretable and automated encoding method to represent traces as vectors. Simultaneously, it adaptively determines sampling preferences by analyzing system runtime metrics. When sampling, it combines the results of system-bias and diversity-bias through a dynamic voting mechanism. Experimental results demonstrate that TraStrainer can achieve higher quality sampling results and significantly improve the performance of downstream root cause analysis (RCA) tasks. It has led to an average increase of 32.63% in Top-1 RCA accuracy compared to four baselines in two datasets.

Funder

Guangdong Basic and Applied Basic Research Foundation

Publisher

Association for Computing Machinery (ACM)

Reference57 articles.

1. 2023. Kubernetes Homepage. http://kubernetes.io/ [Online]

2. 2023. Zipkin Homepage. https://zipkin.io [Online]

3. Debugging distributed systems

4. Chaosblade. 2023. Chaosblade. https://github.com/chaosblade-io/chaosblade Accessed Jan. 6, 2023

5. Time-Series Forecasting

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3