用大模型智能分析微服务故障根因,精准定位问题。
MicroRCA-Agent: Microservice Root Cause Analysis Method Based on Large Language Model Agents
- 结合日志解析与多级过滤,高效提取故障特征。
- 双模异常检测,准确识别跨节点异常行为。
- 大模型分步推理,自动总结全栈故障原因。
本文提出MicroRCA-Agent,一种基于大语言模型代理的微服务故障根因分析方法,构建了融合多模态数据的智能故障定位系统。创新点包括:首先,将预训练Drain日志解析算法与多级数据过滤机制结合,高效压缩海量日志为高质量故障特征;其次,采用孤立森林无监督学习与状态码验证相结合的双模异常检测方法,实现全面的调用链异常识别;第三,设计统计对称性比率过滤机制与两阶段大模型分析策略,支持节点-服务-容器层级的全栈现象归纳。多模态根因分析模块通过精心设计的跨模态提示,深度融合多源异常信息,充分挖掘大模型的跨模态理解与逻辑推理能力,生成包含故障组件、根因描述及推理路径的结构化结果。消融实验验证了各模态数据的互补价值与系统架构的有效性。在复杂微服务故障场景中表现优异,最终得分达50.71。代码已开源:https://github.com/tangpan360/MicroRCA-Agent。
原文摘要 · Abstract (English)
This paper presents MicroRCA-Agent, an innovative solution for microservice root cause analysis based on large language model agents, which constructs an intelligent fault root cause localization system with multimodal data fusion. The technical innovations are embodied in three key aspects: First, we combine the pre-trained Drain log parsing algorithm with multi-level data filtering mechanism to efficiently compress massive logs into high-quality fault features. Second, we employ a dual anomaly detection approach that integrates Isolation Forest unsupervised learning algorithms with status code validation to achieve comprehensive trace anomaly identification. Third, we design a statistical symmetry ratio filtering mechanism coupled with a two-stage LLM analysis strategy to enable full-stack phenomenon summarization across node-service-pod hierarchies. The multimodal root cause analysis module leverages carefully designed cross-modal prompts to deeply integrate multimodal anomaly information, fully exploiting the cross-modal understanding and logical reasoning capabilities of large language models to generate structured analysis results encompassing fault components, root cause descriptions, and reasoning trace. Comprehensive ablation studies validate the complementary value of each modal data and the effectiveness of the system architecture. The proposed solution demonstrates superior performance in complex microservice fault scenarios, achieving a final score of 50.71. The code has been released at: https://github.com/tangpan360/MicroRCA-Agent.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。