Generic and robust root cause localization for multi-dimensional data in online service systems

Zeyan Li, Junjie Chen, Yihao Chen, Chengyang Luo, Yiwei Zhao, Yongqian Sun, Kaixin Sui, Xiping Wang, Dapeng Liu, Xing Jin, Qi Wang, Dan PeiJ. Syst. Softw 2022

Abstract

Localizing root causes for multi-dimensional data is critical to ensure online service systems' reliability. When a fault occurs, only the measure values within specific attribute combinations are abnormal. Such attribute combinations are substantial clues to the underlying root causes and thus are called root causes of multidimensional data. This paper proposes a generic and robust root cause localization approach for multi-dimensional data, PSqueeze. We propose a generic property of root cause for multi-dimensional data, generalized ripple effect (GRE). Based on it, we propose a novel probabilistic cluster method and a robust heuristic search method. Moreover, we identify the importance of determining external root causes and propose an effective method for the first time in literature. Our experiments on two real-world datasets with 5400 faults show that the F1-score of PSqueeze outperforms baselines by 32.89%, while the localization time is around 10 seconds across all cases. The F1-score in determining external root causes of PSqueeze achieves 0.90. Furthermore, case studies in several production systems demonstrate that PSqueeze is helpful to fault diagnosis in the real world.

Introduction

In the world of large-scale online services, a sudden drop in sales or a spike in latency is a "code red" event. While monitoring systems can alert operators that a problem exists, the real challenge lies in finding the root cause. Is the issue affecting all users, or just those in Beijing using a specific mobile provider on a specific version of the app?

Modern online services generate massive amounts of multi-dimensional data (MDD). Every transaction is logged with attributes like Province, ISP, and DeviceType. When a metric fails, the root cause is usually a specific combination of these attributes (e.g., Province=Beijing AND ISP=CMobile). Locating these combinations is difficult due to combinatorial explosion, metric complexity (derived metrics like success rates), and real-world noise.

The PSqueeze Framework

PSqueeze is a robust localization framework designed to automate this detective work with high accuracy and speed. It is built on several key innovations that address the limitations of existing tools.

Architecture of the PSqueeze framework for root cause localization

1. Generalized Ripple Effect (GRE)

The authors mathematically prove that when a root cause occurs, all affected data points change by the same proportion. Crucially, they show this holds true not just for basic counts, but also for products and quotients (derived metrics). This allows PSqueeze to be "generic"—it can handle revenue, success rates, or complex latency ratios without specialized tuning.

2. Probabilistic Clustering

Instead of assuming forecast values are perfect, PSqueeze uses a probabilistic model to account for noise. It groups "leaf" attribute combinations into clusters based on the probability that they share the same proportional change. This prevents the system from being distracted by minor natural fluctuations in traffic.

Probabilistic clustering based on deviation scores

As shown in the workflow, PSqueeze first clusters data from the bottom up to simplify the problem into single-root-cause sub-problems. It then searches top-down within those clusters to find the most "interpretable" (simplest) attribute combination that explains the anomaly.

4. External Root Cause Detection

By using a "Generalized Potential Score" (GPS), the system can detect if the localized internal attributes fail to sufficiently explain the data. If the score is too low, it alerts operators that the cause likely lies in an unrecorded external factor, such as a third-party API outage or a global network failure.

Key Results

The researchers evaluated PSqueeze using 5,400 faults from real-world production data and injected faults in open-source microservice benchmarks.

  • Superior Accuracy: PSqueeze achieved an F1-score that outperformed the best baselines by 32.89% on average.
  • High Efficiency: Despite the massive search space, the localization time was consistently around 10 seconds across all cases, making it suitable for real-time operations.
  • External Detection: The framework achieved an F1-score of 0.90 in correctly identifying when a root cause was external.
  • Real-World Impact: In production case studies, PSqueeze identified root causes in seconds that had previously taken human operators over an hour to find manually.

Conclusion

PSqueeze demonstrates that by embracing uncertainty through probabilistic modeling and leveraging the universal "ripple effect" of proportional changes, root cause localization can be both generic and robust. While currently focused on categorical attributes, future work aims to support numerical attributes directly to further expand the tool's versatility in complex online service environments.

Summary updated

BibTeX
@article{li2022generic,
  author = {Zeyan Li and Junjie Chen and Yihao Chen and Chengyang Luo and Yiwei Zhao and Yongqian Sun and Kaixin Sui and Xiping Wang and Dapeng Liu and Xing Jin and Qi Wang and Dan Pei},
  title = {{Generic and robust root cause localization for multi-dimensional data in online service systems}},
  journal = {J. Syst. Softw.},
  year = {2022},
  url = {https://openreview.net/forum?id=BcyRlXfmIf},
}
Figure