TL;DR
This paper introduces RCLAgent, a novel multi-agent system that uses a "recursion-of-thought" framework to pinpoint the root cause of failures in complex microservice systems. By mimicking human SREs' recursive, multi-dimensional, and cross-modal reasoning, RCLAgent achieves superior accuracy and efficiency, even when analyzing a single request.
What Problem Does This Paper Address?
Modern microservice architectures are incredibly complex, often consisting of thousands of interconnected services. This complexity leads to frequent failures, making it crucial to quickly identify the root cause to ensure system reliability. Traditional methods often struggle because they rely on rigid, pre-defined schemas that can't adapt to evolving systems, or they lack transparency in their reasoning, leaving engineers confused. This paper aims to bridge this gap by developing an adaptive and interpretable root cause localization system.
Methods
The core of RCLAgent is its multi-agent recursion-of-thought framework. This framework is inspired by how human Site Reliability Engineers (SREs) debug:
- Recursiveness: When a potential issue is found, they dive deeper into the system's layers.
- Multi-dimensional Expansion: They examine various aspects like pods, services, and infrastructure.
- Cross-modal Reasoning: They correlate findings from different data sources (like traces and metrics).
RCLAgent implements this through:
- Data Agents: These agents (Trace Agent, Metric Agent, Format Agent) retrieve and process data from traces and metrics. The Metric Agent is specialized to only fetch metrics showing significant deviations.
- Thought Agents: These agents perform the reasoning. The Intermodal Inference Agent bridges the gap between trace and metric data by synthesizing queries. The Recursion Agent drives the recursive, step-by-step analysis, automatically backtracing when a path proves unfruitful.
- Coordinator: This central component orchestrates the entire process through three phases: Initial Reasoning, Critical Reflection (to prevent premature termination), and Final Review (to consolidate findings).
Datasets
The experiments were conducted using the AIOPS 2022 companion dataset, a large-scale, real-world dataset from a mature microservices e-commerce system. This dataset is divided into six subsets (A, B, Γ, Δ, E, and Z) for evaluation.
Key Insights and Ideas
- Human-like Reasoning is Key: The paper's foundational insight is that mimicking the recursive, multi-dimensional, and cross-modal reasoning patterns of human SREs is highly effective for root cause localization.
- Single Request Analysis is Powerful: Unlike many existing methods that require aggregating data from multiple requests, RCLAgent's ability to pinpoint the root cause from a single request significantly boosts efficiency.
- The Importance of Critical Reflection: The "Critical Reflection" stage is crucial for preventing the LLM from prematurely concluding its analysis, ensuring a more thorough investigation and preventing missed root causes.
- LLM Backbone Matters: The choice of Large Language Model (LLM) significantly impacts performance, with more powerful models like Claude-3.5-Sonnet yielding superior results.
Key Results
- Superior Accuracy: RCLAgent consistently outperforms state-of-the-art methods, including trace-based and LLM-based approaches, in terms of Recall@1 (identifying the exact root cause).
- Efficiency Gain: RCLAgent achieves this superior performance by analyzing only a single request, whereas many baselines require multiple requests.
- Significant Improvement: RCLAgent's Recall@1 results are approximately 2-9% better than the Recall@10 of other methods. It also shows an average improvement of 30.44% compared to other methods achieving the same Recall@1 performance.
- Group Ranking: Even when used with a simple majority voting mechanism for group ranking, RCLAgent shows a 32.53% improvement over the second-best method in MRR.
- LLM Impact: Claude-3.5-Sonnet consistently delivered the best results, outperforming other tested LLMs by an average of 14.79%.
Limitations and Future Work
- Baseline Implementation: While some baseline methods had publicly available code, others were implemented based on paper descriptions, which might introduce minor variations.
- Dataset Specificity: The evaluation primarily used the AIOPS 2022 dataset, which, while extensive, might not cover all possible failure scenarios in diverse operational contexts.
- Subjectivity in SRE Insights: The empirical study relied on insights from multiple SREs, and the inherent subjectivity in their diagnostic processes could introduce bias.
Future work includes exploring smaller-scale models for more efficient root cause localization and extending the approach to cover the entire failure management process.
Summary updated