Abstract
Root cause analysis is one of the most crucial operations in software reliability regarding system performance diagnostic. It aims to identify the root causes of system performance anomalies, allowing the resolution or the future prevention of issues that can cause millions of dollars in losses. Common existing approaches relying on data correlation or full domain expert knowledge are inaccurate or infeasible in most industrial cases, since correlation does not imply causation, and domain experts may not have full knowledge of complex and real-time systems. In this work, we define a novel causal domain knowledge model representing causal relations about the underlying system components to allow domain experts to contribute partial domain knowledge for root cause analysis. We then introduce RADICE, an algorithm that through the causal graph discovery, enhancement, refinement, and subtraction processes is able to output a root cause causal sub-graph showing the causal relations between the system components affected by the anomaly. We evaluated RADICE with simulated data and reported a real data use case, sharing the lessons we learned. The experiments show that RADICE provides better results than other baseline methods, including causal discovery algorithms and correlation based approaches for root cause analysis.
Introduction: The "Needle in a Haystack" Problem
When large-scale software systems experience performance degradation, engineers are often overwhelmed by thousands of metrics. Identifying the actual root cause amidst this noise is a significant challenge. Traditional methods typically fall into two categories: correlation-based methods and full expert-driven models. Correlation-based methods often fail because correlation does not imply causation, leading to "spurious" results where two metrics move together due to a shared hidden cause. Conversely, expert-driven models require a complete, up-to-date map of the system's causal structure—a feat nearly impossible in modern, dynamic microservice architectures.
RADICE addresses these gaps by enabling accurate root cause analysis (RCA) using observational data and only incomplete or "partial" expert knowledge. By focusing on the causal sub-graph, it isolates the failure propagation path from the broader system noise.
The RADICE Framework
The authors propose RADICE (Italian for "root"), a multi-stage pipeline designed to transform raw telemetry into a coherent causal story. The framework bridges automated data-driven discovery with human expertise through several key stages.
- Partial Domain Knowledge (DK) Model: Instead of requiring a full system map, experts provide "node levels" (e.g., indicating upstream vs. downstream components) and "refinement rules" (e.g., specifying that an increase in failure rate should negatively impact performance).
- Causal Discovery (PCMCI+): The pipeline begins by analyzing time-series data to identify potential causal links, specifically accounting for time lags between events (e.g., a CPU spike leading to a latency increase seconds later).
- Graph Enhancement & Entropy: To resolve ambiguous edge directions that statistical tests cannot orient, RADICE employs an entropy-based strategy. It analyzes the noise distribution; the direction exhibiting lower entropy is typically identified as the true causal path.
- Adjusted Correlation Score: To filter noise, a custom score considers time-shifting and smoothing, ensuring only metrics with a logically timed relationship to the anomaly are retained.
- Causal Subtraction: The final stage trims the comprehensive system graph into a specific sub-graph, highlighting only the path from the root cause to the performance drop.
Evaluation and Results
RADICE was evaluated using both simulated and real-world datasets:
- Simulated Data: 50 datasets were generated from ground-truth causal graphs (5 to 25 nodes). RADICE significantly outperformed industry baselines like CoFlux and $\epsilon$-diagnosis. Adding node-level knowledge increased Recall and Precision by approximately 50% and 30%, respectively.
- Real-World Advertising Data: Using three days of telemetry (19 metrics) from a production system, RADICE correctly identified specific component failures (ADX and DSP) as root causes, successfully filtering out false positives that correlation-based methods incorrectly flagged.
Key Insights and Limitations
A major takeaway is that "partial" knowledge is powerful. Simply knowing the relative "level" of a component significantly reduces the search space and prevents "backwards" causality errors. Furthermore, RADICE distinguishes between symptoms and causes; while standard tools might flag a drop in "Success Rate" as a root cause, RADICE recognizes it as a symptom of upstream degradation.
However, challenges remain. As systems scale beyond 25 nodes, computational complexity increases and precision can dip in very dense graphs. Future work will explore hierarchical modeling and adaptive graph pruning to handle massive industrial systems with thousands of interconnected components.
Summary updated