BARO: Robust Root Cause Analysis for Microservices via Multivariate Bayesian Online Change Point Detection

Luan Pham, Huong Ha, Hongyu Zhang

TL;DR

Existing metric-based root cause analysis (RCA) techniques for microservices rely heavily on the assumption that failure onset times are known accurately—an assumption that quickly breaks down in production. BARO solves this with an end-to-end framework combining Multivariate Bayesian Online Change Point Detection (BOCPD) to accurately flag anomaly timing across correlated metrics, and RobustScorer, an outlier-resistant, nonparametric scoring method that identifies root causes even when anomaly detection timestamps are noisy or delayed.

What Problem Does This Paper Address?

Troubleshooting microservices typically involves two sequential steps: detecting an anomaly in real-time metrics (e.g., latency, error rates) and localizing the root cause service and metric.

Most state-of-the-art RCA methods (such as RCD or CIRCA) make an unrealistic assumption: they assume the upstream anomaly detection module provides the exact failure timestamp $\hat{t}_A$. If this timestamp is off by even tens of seconds, statistical baselines using mean and standard deviation become polluted by abnormal data points, severely degrading localization accuracy. Furthermore, graph-based causal discovery algorithms (e.g., PC or DAG-GNN) struggle to scale to large, complex service topologies like train-booking systems with dozens of interacting services.

Methods

BARO tackles metric-based troubleshooting through a two-stage, unsupervised, and domain-agnostic pipeline:

  1. Multivariate Bayesian Online Change Point Detection (BOCPD): Rather than evaluating metrics independently or setting static heuristic thresholds, BARO models the correlation structure across "golden signals" (specifically Latency and Errors) using an inverse Wishart prior. It recursively computes the posterior probability of the run length (the time since the last distribution shift). The first detected change point serves as the estimated failure onset time ($\hat{t}_A$).
  2. RobustScorer: Traditional approaches compare pre- and post-failure periods using z-scores ($\mu$ and $\sigma$), which are heavily skewed by outliers if $\hat{t}_A$ is delayed. RobustScorer instead characterizes pre-failure baseline data using the median and interquartile range (IQR). For metric $x^{(i,j)}$ at step $t$ after $\hat{t}_A$, it calculates: $$a_t^{(i,j)} = \frac{|x_t^{(i,j)} - \text{med}|}{\text{IQR}}$$ The maximum deviation $\rho^{(i,j)} = \max_{t} a_t^{(i,j)}$ across the anomalous window ranks candidate root-cause metrics (fine-grained) and their associated services (coarse-grained).

Datasets

The authors evaluated BARO on three popular open-source microservice benchmarks deployed on a 5-node Kubernetes cluster under 100–200 concurrent simulated users:

  • Online Boutique (12 services, 49 metrics)
  • Sock Shop (11 services, 46 metrics)
  • Train Ticket (64 services, 212 metrics) — representing a significantly larger and more complex benchmark than commonly used in prior studies.

Four fault types were injected into 5 critical services in each system (5 runs each = 100 failure cases per benchmark): CPU hog, memory leak, network delay, and packet loss.

Key Insights and Ideas

  • Median/IQR beats Mean/Std under timing uncertainty: If an anomaly detector reacts late, anomalous data points slip into the "normal" training baseline. The median and IQR resist this contamination, preventing the RCA ranker from degrading.
  • Correlated change point detection avoids heuristic tuning: Univariate detectors either miss system-wide cascading effects or flood operators with false alarms. Joint multivariate change point detection captures shifts in the cross-metric dependency structure without manual thresholds.
  • Causal discovery hits a scalability wall: Complex causal discovery algorithms like DAG-GNN or the PC algorithm crumble on large graphs (e.g., Train Ticket's 64 services), whereas simple, robust statistical ranking scales seamlessly and delivers higher top-$k$ precision.

Key Results

  • Anomaly Detection Performance: BARO consistently achieved the top F1-scores across all benchmarks (Online Boutique: 0.82, Sock Shop: 0.75, Train Ticket: 0.81), comfortably beating baselines like N-Sigma (0.67–0.72) and SPOT (0.67–0.69).
  • Root Cause Localization (Coarse-Grained): In service-level localization (Avg@5), BARO achieved 0.86 on Online Boutique, 0.95 on Sock Shop, and 0.81 on Train Ticket. This represents an improvement over CausalRCA by 7.5%, 58%, and 189% respectively. Baseline causal methods collapsed on Train Ticket (RCD scored only 0.05–0.08).
  • Root Cause Localization (Fine-Grained): In metric-level identification (Avg@5), BARO scored 0.61, 0.81, and 0.67, consistently matching or beating the best available baselines.
  • Timing Sensitivity: In sensitivity experiments where the detection time bias ($t_{\text{bias}}$) was shifted between $-40$s and $+40$s, BARO showed virtually flat, stable accuracy, whereas N-Sigma and CIRCA accuracy degraded sharply when detection was delayed.
  • Speed: RobustScorer executed in approximately 0.01 seconds—between $3\times$ and $1000\times$ faster than methods like CausalRCA, CIRCA, and RCD.

Limitations and Future Work

  • Metrics-Only Diagnosis: BARO relies entirely on time-series metrics. It does not currently ingest unstructured runtime data like log messages or distributed tracing spans.
  • Single-Cluster Deployment: The empirical validation was carried out on a single 5-node cluster setup per microservice benchmark.
  • Domain Assumptions: The framework assumes faults manifest in "golden signals" (Latency/Errors) and initiate a propagation chain near fault onset. Adapting the methodology to systems with distinct failure modes (e.g., distributed databases) remains future work.

Summary updated

BibTeX
@inproceedings{pham2026baro,
  author = {Luan Pham and Huong Ha and Hongyu Zhang},
  title = {{BARO: Robust Root Cause Analysis for Microservices via Multivariate Bayesian Online Change Point Detection}},
  booktitle = {Proceedings of the ACM on Software Engineering, Volume 1, Issue FSE},
  year = {2026},
  url = {https://openreview.net/forum?id=AjUG67YOY4},
}
Figure