Groot: An Event-graph-based Approach for Root Cause Analysis in Industrial Settings

Hanzhang Wang, Zhengkai Wu, Huai Jiang, Yichao Huang, Jiamu Wang, Selçuk Köprü, Tao Xie

Introduction

In modern microservice architectures, a single failure can propagate across thousands of services, creating an "alert storm" that overwhelms Site Reliability Engineers (SREs). Identifying the root cause—the "patient zero"—is a critical but daunting task. GROOT, a framework developed by researchers at eBay, UIUC, and Peking University, addresses this by shifting the focus from coarse service-level dependencies to fine-grained event-based causality. Battle-tested across 5,000 production services at eBay, GROOT demonstrates how combining automated graph construction with human domain knowledge can tame microservice chaos.

The Challenge of Scale and Complexity

Root Cause Analysis (RCA) in industrial settings faces three primary hurdles that traditional tools struggle to overcome:

  1. Operational Complexity: A significant knowledge gap often exists between infrastructure SREs and domain-specific SREs. One-size-fits-all tools cannot capture specialized business logic.
  2. Scale Complexity: The sheer volume of services means a single incident can trigger thousands of alerts, making manual tracing impossible.
  3. Monitoring Complexity: Observability data is heterogeneous, ranging from structured metrics to semi-structured logs and unstructured developer activity records.

Existing graph-based RCA methods often use services or virtual machines as nodes. GROOT argues this is too coarse; knowing "Service A is failing" is insufficient. SREs need to know that a "specific configuration change in Service A caused a latency spike," which requires a more granular, event-based approach.

The GROOT Framework

GROOT operates in three distinct stages to transform raw monitoring data into actionable insights, as illustrated in the system architecture below.

The GROOT system architecture and workflow, from data ingestion to human investigation.

1. Service Dependency Graph Construction

The system first maps service interactions using distributed tracing and log analysis to create a foundational topology. This provides the "bird's-eye view" of how data flows through the system.

2. Event Causality Graph Construction

This is the core innovation of the GROOT approach. The system aggregates "events"—summaries of metric deviations, log errors, or deployment activities—and links them using a set of customizable rules. These rules allow SREs to encode their own "if-then" logic into the system:

  • Static Rules: Define basic internal service causality (e.g., a high CPU event leads to a latency spike).
  • Dynamic Rules: Capture dependencies not present in standard traces, such as third-party API failures.
  • Conditional Rules: Context-aware links, such as restricting causality to events occurring within the same data center.
An example of an Event Causality Graph showing dependencies and causal links between various service events.

3. GrootRank: Root Cause Ranking

To identify the most likely root cause, GROOT employs a customized version of the PageRank algorithm called GrootRank. Unlike standard PageRank, which favors highly connected central nodes, GrootRank prioritizes "dangling nodes"—events that have outgoing causal links but no incoming ones. These nodes represent the start of a failure chain. By combining this topological analysis with "access distance" from the initial alert, GROOT effectively filters out noise.

Evaluation and Results

GROOT was evaluated using a massive dataset of 952 labeled production incidents from eBay, collected over 15 months. The results highlight the framework's effectiveness in a real-world industrial environment:

  • High Accuracy: The framework achieved 95% top-3 accuracy and 78% top-1 accuracy, vastly outperforming naive and non-adaptive baselines.
  • Real-time Efficiency: The end-to-end execution time for an incident is less than 5 seconds, making it viable for live production use.
  • Operational Impact: A survey of eBay SREs found that GROOT typically saves 25-50% of triage time per incident, allowing engineers to focus on remediation rather than investigation.

Conclusion

By leveraging event-level granularity and a "human-in-the-loop" rule system, GROOT bridges the gap between automated analysis and expert domain knowledge. While the system currently requires manual rule maintenance, future work aims to incorporate deep learning to automatically derive causal link weights, further reducing the manual burden while maintaining the interpretability essential for SRE trust.

Summary updated

BibTeX
@inproceedings{wang2021groot,
  author = {Hanzhang Wang and Zhengkai Wu and Huai Jiang and Yichao Huang and Jiamu Wang and Selçuk Köprü and Tao Xie},
  title = {{Groot: An Event-graph-based Approach for Root Cause Analysis in Industrial Settings}},
  booktitle = {ASE},
  year = {2021},
  doi = {10.1109/ase51524.2021.9678708},
}
Figure