TORAI: Multi-source Root Cause Analysis for Blind Spots in Microservice Service Call Graph

Luan Pham, Huong Ha, Xiuzhen Zhang, Hongyu Zhang

TL;DR

TORAI is a novel, unsupervised root cause analysis (RCA) framework for microservices that eliminates the traditional dependency on a complete service call graph. By combining anomaly severity scoring, Gaussian clustering, and localized causal inference, it accurately pinpoints failures even in the presence of "blind spots"—services lacking distributed tracing instrumentation.

What Problem Does This Paper Address?

Modern microservice architectures are incredibly complex, making root cause analysis (RCA) essential for minimizing costly system downtime. To diagnose failures, engineers typically rely on three types of telemetry data: metrics, logs, and traces. Most state-of-the-art multi-source RCA methods use traces to construct a service call graph, mapping out how services interact to trace the origin of a fault.

However, the authors identify a major practical flaw in this assumption: full trace coverage is rarely achievable in production. Microservice systems evolve rapidly, frequently introducing third-party APIs, legacy software, or closed-source components that lack tracing instrumentation. These uninstrumented components create "blind spots" in the service call graph, causing existing graph-dependent RCA tools to break down or overlook the true root cause.

Service Call Graph with blind spots

Furthermore, existing methods often require massive amounts of manually labeled training data (supervised learning) or demand intrusive code modifications (like injecting trace IDs into every log line), making them inflexible for real-world deployment.

Methods

TORAI bypasses the service call graph entirely, opting for a purely data-driven, unsupervised pipeline that processes metrics, logs, and traces into independent time series.

Overview of the TORAI pipeline

The architecture consists of five core stages:

  1. SeverityScorer: Measures how far a service's telemetry deviates from its normal baseline during a failure window, generating a multi-source "severity vector" for each service. If a data source (like traces) is missing due to a blind spot, it safely imputes a score of 0.
  2. SymptomCluster: Uses a Gaussian Mixture Model (GMM) to group services exhibiting similar anomaly symptoms. This step effectively separates highly abnormal services from healthy ones.
  3. CausalRanker: Instead of running causal discovery across the entire system (which is computationally expensive and error-prone), TORAI applies a divide-and-conquer causal inference algorithm ($\Psi$-PC) within each cluster to build localized causal graphs and rank potential root-cause services.
  4. RankAggregation: Merges the cluster-level and service-level rankings into a single coarse-grained prioritized list of culprit services.
  5. FineGrainer: Conducts non-parametric hypothesis testing using the median and interquartile range (IQR) to pinpoint the exact fine-grained indicator (e.g., a specific CPU metric or error log template) driving the failure.

Datasets

The authors evaluated TORAI across three widely recognized microservice benchmark suites deployed on a Kubernetes cluster, alongside a real-world production dataset:

  • Online Boutique: An e-commerce platform with 11 services (4 default blind spots).
  • Sock Shop: An online clothing store with 11 services configured with zero trace data (100% blind spots).
  • Train Ticket: A large-scale ticketing system consisting of 64 services (37 default blind spots).
  • Real-World ISP Dataset: 10 real incident cases collected from a major Internet service provider serving over 50 million users (containing metrics and traces only).

Faults injected into the benchmarks included CPU hogs, memory leaks, disk IO stress, socket stress, network delays, and packet loss.

Key Insights and Ideas

  • Graphs are Optional for RCA: The core philosophical shift in TORAI is that anomaly scores and local causal structures contain enough statistical signal to deduce root causes without needing a perfectly mapped structural call graph.
  • Clustering Prevents Causal Dilution: Running causal discovery algorithms on thousands of system metrics simultaneously degrades performance. Grouping services by anomaly severity first drastically reduces the search space and improves causal accuracy.
  • Robustness to Imprecise Triggers: Anomaly detection systems often trigger alerts late, which pollutes the "normal" baseline data with early failure data. By using Median and IQR instead of Mean and Standard Deviation in the FineGrainer step, TORAI remains highly resilient to these outlier data points.

Key Results

TORAI was compared against 9 state-of-the-art baselines (including BARO, CIRCA, and RCD) and demonstrated substantial improvements:

  • Superior Accuracy in Blind Spots: On the Train Ticket dataset, TORAI achieved a top-5 average accuracy (Avg@5) of 0.89, vastly outperforming baselines like CausalRCA (0.43) and CIRCA (0.46).
  • Graceful Degradation: Even when trace data was completely removed (100% blind spots on Sock Shop), TORAI maintained an Avg@5 score of 0.94 using just metrics and logs.
  • Real-World Performance: On the production ISP dataset, TORAI achieved 100% accuracy within the top 3 recommendations (AC@3 = 1.00).
  • High Efficiency: TORAI scales exceptionally well, diagnosing the 64-service Train Ticket system in just 20.59 seconds, whereas deep-learning baselines like CausalRCA exceeded the 2-hour limit.

Limitations and Future Work

While TORAI proves highly effective for standard resource and network faults, its performance relies on the assumption that root causes will manifest some form of distributional change in telemetry data. The evaluation was also tied to representative microservice faults. The authors suggest that expanding TORAI to handle other complex distributed architectures, such as large-scale distributed database systems, represents a promising direction for future work.

Summary updated

BibTeX
@article{pham2026torai,
  author = {Luan Pham and Huong Ha and Xiuzhen Zhang and Hongyu Zhang},
  title = {{TORAI: Multi-source Root Cause Analysis for Blind Spots in Microservice Service Call Graph}},
  journal = {Proc. ACM Softw. Eng.},
  year = {2026},
  doi = {10.1145/3808137},
}
Figure