A Comprehensive Survey on Root Cause Analysis in (Micro) Services: Methodologies, Challenges, and Trends

Tingting Wang, Guilin QiarXiv 2024 · DOI

Abstract

As microservice architectures become the standard for scalable cloud applications, the complexity of managing their interdependencies has grown exponentially. This paper provides a comprehensive roadmap of Root Cause Analysis (RCA) techniques, categorizing them by data sources—metrics, logs, and traces—and methodologies ranging from statistical correlation to advanced AI-driven multi-modal integration. We highlight the critical shift toward causal inference and the emerging role of Large Language Models (LLMs) in automating complex system troubleshooting.

1. Introduction: The Challenge of "Dependency Hell"

While microservices offer unparalleled scalability, they create a dense, network-like structure where services are deeply interconnected. In such environments, a single failure—such as a database timeout or a misconfigured container—can trigger a "cascading effect" or an "anomaly storm" across the entire system.

Figure 1: Microservice dependency graph illustrating the multi-layered complexity and 'dependency hell' inherent in modern cloud architectures.

The core operational challenge is Mean Time to Recovery (MTTR). Manual troubleshooting is no longer viable given the sheer volume of telemetry data generated by thousands of nodes. This survey explores how "AIOps" (Artificial Intelligence for IT Operations) can automate the identification of the "smoking gun" behind system failures, ensuring stability in increasingly volatile cloud environments.

2. RCA Methodologies and Taxonomy

The authors categorize RCA methodologies into primary pillars based on the data they ingest and the algorithmic approach used to process that data. This taxonomy provides a structured view of the field's evolution from simple heuristics to complex neural architectures.

Figure 2: A detailed taxonomy of Root Cause Analysis (RCA) methods, categorized by data source and algorithmic approach.

2.1 Data-Driven Pillars

  • Metric-based RCA: Utilizes Key Performance Indicators (KPIs) like CPU usage or request latency. Techniques range from statistical correlation (Pearson/Spearman) to complex graph-based approaches like the PC algorithm to build directed acyclic graphs (DAGs) of failure propagation.
  • Trace-based RCA: Analyzes the end-to-end journey of requests across services. Methods include path analysis (finding the longest anomalous path) and spectrum-based analysis, which ranks service nodes based on their presence in failed versus successful traces.
  • Log-based RCA: Processes unstructured text data through log parsing and association rule mining to link specific log sequences to system failures.
  • Multi-modal RCA: The current state-of-the-art involves breaking down data silos by fusing metrics, traces, and logs into a unified model, often utilizing Graph Neural Networks (GNNs) to capture structural dependencies.
  • LLM-enhanced RCA: The newest frontier uses LLMs as "agents" to summarize incidents, retrieve historical cases via Retrieval-Augmented Generation (RAG), and orchestrate diagnostic tools in real-time.
  • Causality over Correlation: Statistical correlation often flags "innocent bystander" services. Modern research emphasizes Causal Inference to prove why a failure happened, rather than just where it was felt.
  • The 74% Rule: Research indicates that approximately 74.38% of failures are recurring. This makes Knowledge Graphs containing historical fault data incredibly powerful for accelerating future diagnoses.
  • Interpretability and Trust: Engineers require Explainable AI (XAI) that provides a "reasoning path" alongside predictions to trust automated tools during high-stakes outages.

4. Evaluation and Future Directions

RCA systems are evaluated on Effectiveness (Top-k Accuracy) and Efficiency (localization time). While modern methods can reduce diagnosis time from hours to minutes, several challenges remain:

  • Data Quality: Noisy logs and incomplete traces can lead to "hallucinated" root causes.
  • Scalability: The computational cost of building causal graphs for thousands of nodes remains a bottleneck.
  • Real-time Adaptation: Future systems must employ incremental learning to adapt to "zero-day" failures and dynamic topology changes in real-time.

Conclusion

The transition from siloed analysis to multi-modal, AI-driven orchestration marks a significant milestone in cloud operations. By grounding advanced models like LLMs in actual system telemetry and focusing on causal interpretability, the industry moves closer to truly autonomous, self-healing microservice environments.

Summary updated

BibTeX
@misc{wang2024comprehensive,
  author = {Tingting Wang and Guilin Qi},
  title = {{A Comprehensive Survey on Root Cause Analysis in (Micro) Services: Methodologies, Challenges, and Trends}},
  year = {2024},
  eprint = {2408.00803},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.00803},
}
Figure