A Scenario-Oriented Benchmark for Assessing AIOps Algorithms in Microservice Management

Yongqian Sun, Jiaju Wang, Zhengdan Li, Xiaohui Nie, Minghua Ma, Shenglin Zhang, Yuhe Ji, Lu Zhang, Wen Long, Hengmao Chen, Yongnan Luo, Dan PeiarXiv 2024 · DOI

Introduction

In modern microservice architectures, failures are complex and multifaceted. Artificial Intelligence for IT Operations (AIOps) leverages machine learning for anomaly detection and root cause analysis to manage this complexity. However, current benchmarking practices often rely on static, offline datasets that fail to capture the dynamic nature of production environments. Furthermore, existing leaderboards typically provide a "one-size-fits-all" ranking, ignoring that an algorithm's effectiveness can vary significantly depending on the specific operational scenario, such as a network lag versus a CPU spike.

To address these challenges, we present MicroServo, a live evaluation framework that shifts AIOps benchmarking toward dynamic, scenario-oriented testing.

The MicroServo Framework

MicroServo automates the entire lifecycle of AIOps evaluation, from fault injection to performance analysis. Its architecture is built upon four primary pillars:

  1. Fault Injection: Utilizing ChaosMesh, the system automatically simulates real-world disasters like CPU stress or network loss based on a scheduled orchestration calendar.
  2. Process Automation: The framework operates on a live ecosystem using the "Online Boutique" microservice demo. A standard monitoring stack (Prometheus, Filebeat, and Elastic APM) collects metrics, logs, and traces in real-time.
  3. Algorithm Hot-plugging: To resolve dependency conflicts, each AIOps algorithm is containerized using Docker. This "hot-plugging" capability allows for seamless deployment and removal without environment contamination.
  4. Scenario-Oriented Leaderboards: Instead of a single master list, MicroServo generates leaderboards tailored to specific fault scenarios, allowing engineers to identify the best-performing models for particular types of failures.
The MicroServo system architecture, illustrating the flow from fault injection to the evaluation leaderboard.

Datasets and Scenarios

The researchers released three distinct datasets collected via MicroServo, providing a unified format for multimodal data (metrics, logs, and traces):

  • Scenario 1: A comprehensive 5-day dataset with 226 fault cases.
  • Scenario 2: A 1-day dataset focused on CPU and memory stress.
  • Scenario 3: A 1-day dataset focused on pod failures.

Key Insights: Context and Multimodality

A critical finding is that algorithm performance is highly volatile depending on the fault type. For instance, the DeepLog algorithm performed poorly under resource stress (Scenario 2) because such faults often lack clear log signatures. Conversely, its performance improved significantly during pod failures (Scenario 3), where errors are explicitly recorded in system logs.

Furthermore, the study highlights the limitations of "unimodal" models. Network faults are often invisible to log-only models, while pod failures might be missed by metric-only models, underscoring the need for multimodal AIOps approaches.

Evaluation Results

The framework was used to test several state-of-the-art algorithms, including TimesNet, USAD, and Diagfusion.

  • Anomaly Detection: TimesNet demonstrated superior robustness, achieving F1-scores of 0.95 in Scenario 2 and 0.98 in Scenario 3. Its ability to handle temporal variations outperformed older models like USAD.
  • Root Cause Localization: Diagfusion significantly outperformed competitors, reaching an Accuracy@1 of 0.52 in Scenario 1 by leveraging multimodal data rather than just network topology.
  • Operational Efficiency: The hot-plugging system drastically reduced deployment and evaluation time to just a few minutes.
The MicroServo Leaderboard UI, showing comparative performance metrics for various anomaly detection algorithms.

Limitations and Future Directions

While MicroServo represents a significant advancement, future work will focus on expanding the variety of supported faults (e.g., IO-Type and HTTP-Type) and increasing the library of state-of-the-art algorithms. Additionally, the team plans to integrate features for uploading offline datasets to allow for standardized benchmarking against the live platform's library.

Summary updated

BibTeX
@misc{sun2024scenario,
  author = {Yongqian Sun and Jiaju Wang and Zhengdan Li and Xiaohui Nie and Minghua Ma and Shenglin Zhang and Yuhe Ji and Lu Zhang and Wen Long and Hengmao Chen and Yongnan Luo and Dan Pei},
  title = {{A Scenario-Oriented Benchmark for Assessing AIOps Algorithms in Microservice Management}},
  year = {2024},
  eprint = {2407.14532},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14532},
}
Figure