Abstract
Modern microservice architectures face significant challenges in Root Cause Analysis (RCA) due to complex interdependencies and alert storms. KGroot is a novel framework that leverages Knowledge Graphs (KGs) and Relational Graph Convolutional Networks (RGCNs) to automate RCA. By transforming logs and metrics into structured events and matching real-time failure patterns against historical "fault signatures," KGroot achieves high accuracy and sub-second latency. Evaluation on real-world and benchmark datasets shows Top-3 accuracy of up to 93.5% with diagnosis times under 600ms.
Introduction
In cloud-native architectures, a single component failure often triggers a "domino effect" of alerts across hundreds of interdependent microservices. This creates a "needle in a haystack" problem for Site Reliability Engineers (SREs). Manual RCA is often slow, exceeding 3-5 minutes, while existing automated methods frequently lack the precision required for industrial trust. Given that approximately 94% of failures in large-scale systems are recurring, KGroot proposes leveraging historical "event knowledge" to diagnose new problems efficiently.
Methodology
KGroot introduces a four-stage pipeline designed to automate diagnosis by treating RCA as a pattern-matching problem in graph space.
1. Data Preprocessing
The framework transforms unstructured logs and metrics into structured "events." It utilizes Word2Vec for specific event representation and BERT for abstract event types, ensuring the system captures the semantic context of failures.
2. Causal Relation Discovery
Rather than relying solely on temporal sequences, KGroot employs a Support Vector Machine (SVM) classifier. This determines if a true causal relationship exists between events, effectively filtering out noise from coincidental sequences.
3. Graph Construction
KGroot constructs two types of graphs:
- FEKG (Fault Event Knowledge Graph): A library of graphs derived from historical data representing known fault types.
- Online FPG (Fault Propagation Graph): A real-time graph constructed immediately upon failure detection.
4. Similarity Computation and Ranking
The core of KGroot is its use of a Relational Graph Convolutional Network (RGCN) to embed these graphs into vectors. The system calculates the similarity between the current online graph and historical FEKGs. A final ranking strategy incorporates the time and "distance" between the alarm and candidate events to pinpoint the specific root cause.
Experimental Evaluation
The researchers evaluated KGroot on two datasets:
- Dataset A (Real-world): Collected from a large-scale bank system, featuring 99 failures and over 2,500 metrics.
- Dataset B (Benchmark): Based on the "Train Ticket" open-source microservice benchmark, with 156 injected failures (e.g., CPU overload, network delay, pod kills) using Chaos Mesh.
Results and Discussion
KGroot significantly outperformed state-of-the-art baselines like DéjàVu and iSQUAD. On the benchmark dataset, it achieved 75.18% Top-1 accuracy and 93.5% Top-3 accuracy. The system maintained a high F1-score (approx. 74-76%), demonstrating a strong balance between precision and recall.
Crucially, the system is optimized for real-time industrial use, locating root causes in roughly 350ms to 580ms. By focusing on "events" (e.g., "CPU usage > 99%") rather than raw time-series data, KGroot achieves a granularity that aligns with how SREs conceptualize system health.
Conclusion
KGroot demonstrates that treating RCA as a graph similarity problem can drastically reduce Mean Time To Repair (MTTR). While highly effective for recurring issues, future work will focus on addressing "black swan" events (non-recurring faults) and moving toward proactive fault prediction and self-healing systems.
Summary updated