Efficient Fault Localization in a Cloud Stack Using End-to-End Application Service Topology

Dhanya R. Mathews, Mudit Verma, Pooja Aggarwal, J. LakshmiarXiv 2025 · DOI

Introduction

As microservice architectures grow in complexity, identifying the "needle in the haystack" during application failures becomes increasingly difficult. Modern cloud environments involve intricate dependencies where a single user request traverses dozens of microservices, containers, and virtual machines. This paper introduces TA-RCD (Topology-Aware Root Cause Discovery), a novel method that leverages the structural map of a cloud stack to filter out noise and pinpoint faults with high precision.

The Challenge of Cloud Observability

In modern distributed systems, a performance anomaly—such as a sudden spike in latency—can generate an overwhelming volume of observability data. For instance, large-scale platforms like Netflix track over 2 million metrics. Traditional "black-box" fault localization tools often fail in these environments due to three primary factors:

  1. Data Deluge: Algorithms are overwhelmed by the sheer volume of metrics.
  2. Semantic Gap: Tools often lack the context to understand how hardware-level failures (e.g., a CPU hog on a physical server) propagate upward to cause application-level errors.
  3. Spurious Correlations: Without knowledge of service connectivity, algorithms frequently mistake symptoms in one service for the root cause in another.

Methodology

The researchers propose a two-pronged solution to bridge the semantic gap and manage data volume: Intelligent Metric Selection and the TA-RCD Algorithm.

Intelligent Metric Selection

Rather than processing every available metric, the authors categorize metrics into State (health indicators like CPU utilization) and Activity (workload indicators like request rate). By mapping these categories to specific architectural layers (Service, Container, VM, Physical), they significantly reduced the metric dimensionality.

Reduction of monitoring metrics across different cloud architecture layers.

As shown in the table above, this approach allowed the team to trim 110 container metrics down to just 29 highly informative ones, and over 600 infrastructure metrics down to 34 per node, focusing only on data that directly impacts fault propagation.

The TA-RCD Algorithm

The core contribution is an enhancement of the Root Cause Detection (RCD) algorithm through Topology-Aware Splitting. Unlike standard RCD, which uses random data splits, TA-RCD uses the application's structural map to guide its analysis.

The three-phase TA-RCD architecture for topology-aware root cause discovery.

The algorithm operates in three distinct phases:

  • Phase 1: Identifies anomalous metrics within individual layers using layer-based splits.
  • Phase 2: Traces the fault's path using end-to-end application topology, grouping metrics based on actual service connections rather than random sampling.
  • Phase 3: Ranks potential root causes using statistical significance (p-values) derived from conditional independence tests ($\psi$-PC algorithm).

Experimental Evaluation

The approach was evaluated using the Sock-shop microservice application, an industry-standard benchmark. The test environment consisted of a 16-VM Kubernetes cluster. To simulate real-world conditions, the researchers injected three types of failures—CPU hogs, memory leaks, and network delays—at both the container and VM layers to test the algorithm's ability to trace failures across the entire stack.

Key Results and Insights

TA-RCD demonstrated significant improvements over state-of-the-art methods:

  • Accuracy Boost: The algorithm outperformed the baseline RCD by an average of 2x for Top-5 recall. In specific scenarios, the improvement reached as high as 21x.
  • Precision: For Top-3 recall, TA-RCD was 4x to 13x more effective than existing tools.
  • Consistency: By using topology as a causal prior, the algorithm avoids the instability of random sampling, providing consistent results across multiple runs.

Beyond raw metrics, the study highlights that service topology is a powerful constraint for machine learning. Distinguishing between what a service is doing (Activity) and its health (State) allows the system to differentiate between a service that is broken and one that is simply overloaded by a neighbor.

Conclusion and Future Work

While TA-RCD provides a major leap in accuracy and explainability, it introduces a trade-off in execution time due to its complex topology-based iterations. Future work will focus on parallelizing the algorithm to support ultra-low-latency automated remediation and expanding the scope to include logic errors and configuration-based faults. Despite these challenges, TA-RCD proves that "white-box" topological awareness is essential for managing the complexity of modern cloud stacks.

Summary updated

BibTeX
@misc{mathews2025efficient,
  author = {Dhanya R. Mathews and Mudit Verma and Pooja Aggarwal and J. Lakshmi},
  title = {{Efficient Fault Localization in a Cloud Stack Using End-to-End Application Service Topology}},
  year = {2025},
  eprint = {2509.05511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.05511},
}
Figure