arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.01140cs.LGcs.AIcs.DC
收藏

基于神经格兰杰因果发现的微服务根因分析

Root Cause Analysis In Microservice Using Neural Granger Causal Discovery

National Yang Ming Chiao Tung University(阳明交通大学)

Cheng-Ming Lin, Ching Chang, Wei-Yao Wang, Kuang-Da Wang, Wen-Chih Peng

AI总结:

针对微服务故障根因定位难、现有方法忽略时间序列时序信息的问题,提出结合对比学习的神经格兰杰因果发现方法RUN,实验证明其性能优于现有最优方法,具备实用价值。

摘要:

近年来,微服务凭借其可扩展性、易维护性和灵活性在IT运维中得到广泛应用。然而,当系统出现故障时,由于微服务之间的关系复杂,站点可靠性工程师(SRE)很难精准定位根因。已有研究采用结构化学习方法(如PC算法)构建因果关系,并从因果图中推导根因。但这类方法忽略了时间序列数据的时间顺序,未能利用时间关系中固有的丰富信息。例如,当CPU利用率突然飙升时,会导致其他微服务的延迟上升;而在这种场景下,CPU利用率异常发生在延迟上升之前,而非同时发生,因此PC算法无法捕捉到这类特征。为解决上述问题,我们提出了RUN——一种结合对比学习的神经格兰杰因果发现根因分析新方法。RUN通过整合时间序列的上下文信息增强骨干编码器,并利用时间序列预测模型开展神经格兰杰因果发现。此外,RUN结合带个性化向量的PageRank算法,高效推荐前k个根因。在合成数据集和真实微服务数据集上开展的大量实验表明,RUN的性能显著优于当前最优的根因分析方法。我们还提供了sock-shop案例的分析场景,展示了RUN在微服务应用中的实用性和有效性。我们的代码已公开在https://github.com/zmlin1998/RUN。

英文摘要:

In recent years, microservices have gained widespread adoption in IT operations due to their scalability, maintenance, and flexibility. However, it becomes challenging for site reliability engineers (SREs) to pinpoint the root cause due to the complex relationships in microservices when facing system malfunctions. Previous research employed structured learning methods (e.g., PC-algorithm) to establish causal relationships and derive root causes from causal graphs. Nevertheless, they ignored the temporal order of time series data and failed to leverage the rich information inherent in the temporal relationships. For instance, in cases where there is a sudden spike in CPU utilization, it can lead to an increase in latency for other microservices. However, in this scenario, the anomaly in CPU utilization occurs before the latency increase, rather than simultaneously. As a result, the PC-algorithm fails to capture such characteristics. To address these challenges, we propose RUN, a novel approach for root cause analysis using neural Granger causal discovery with contrastive learning. RUN enhances the backbone encoder by integrating contextual information from time series, and leverages a time series forecasting model to conduct neural Granger causal discovery. In addition, RUN incorporates Pagerank with a personalization vector to efficiently recommend the top-k root causes. Extensive experiments conducted on the synthetic and real-world microservice-based datasets demonstrate that RUN noticeably outperforms the state-of-the-art root cause analysis methods. Moreover, we provide an analysis scenario for the sock-shop case to showcase the practicality and efficacy of RUN in microservice-based applications. Our code is publicly available at https://github.com/zmlin1998/RUN.

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

↑