Introduction
In massive cloud infrastructures like Alibaba Cloud, a "batch server outage" (BSO) represents a critical failure scenario. Unlike isolated software bugs, a BSO involves the simultaneous offline status of entire server clusters, often triggered by physical infrastructure failures in power, cooling, or networking. These events are catastrophic for service availability and demand rapid resolution. BSODiag is an unsupervised framework designed to automate the diagnosis of these events, reducing the time to identify a root cause from approximately 30 minutes of manual expert labor to just 24.5 seconds.
The Challenges of Infrastructure Diagnosis
Diagnosing BSOs in large-scale environments presents three primary hurdles:
- Data Granularity: To manage storage costs, large-scale hardware infrastructure typically records "coarse-grained" data, such as high-level alerts and configuration changes, rather than the detailed logs and traces common in microservice architectures.
- Intricate Dependencies: Failures propagate across disparate domains. For instance, a cooling failure in an Internet Data Center (IDC) might trigger a switch reboot, which subsequently knocks out an entire rack of servers.
- The Troubleshooting Gap: Existing tools often identify a single root cause but fail to provide the full propagation path. On-site engineers require visibility into the entire chain of failure to ensure all damaged components are addressed and to prevent recurrence.
The BSODiag Framework
BSODiag addresses these challenges through a lightweight, unsupervised architecture consisting of three specialized modules:
Multi-source Failure Detection (MFD)
This module filters noise from the data stream. It utilizes the Streaming Peaks-Over-Threshold (SPOT) algorithm to identify genuine anomalies within alert streams. Crucially, it distinguishes between "passive" configuration changes (such as automated VM migrations) and "proactive" changes made by human operators, focusing only on high-risk events.
Failure Correlation Mining (FCM)
To map how failures relate, BSODiag applies the Apriori algorithm to historical data to identify frequent failure pairs. These correlations are then refined through an expert-provided "rule tree" to ensure they align with physical reality—for example, ensuring the system understands that a power failure can cause a server failure, but the reverse is physically impossible.
Outage Root Cause Analysis (ORCA)
In the final phase, BSODiag constructs an Event Cause Graph by merging historical failure knowledge with real-time physical connectivity data from a Configuration Management Database (CMDB). It employs a customized random walk algorithm (MAPR) to rank potential root causes and utilizes a probability-based method (PPI) to infer the most likely propagation path.
Experimental Evaluation
The framework was evaluated using a massive real-world dataset from Alibaba Cloud collected between January 2022 and December 2023. The dataset included 95 batch server outages, over 1 million alerts, and 7,644 configuration changes.
Key Results
BSODiag was benchmarked against several state-of-the-art failure graph methods, including AirAlert and COT:
- Accuracy: BSODiag achieved an 87.5% PR@3 (the true root cause appeared in the top 3 suggestions 87.5% of the time) and a 46.3% Path Coverage Rate (PCR), outperforming the best baseline by over 10%.
- Efficiency: The system completes a full diagnosis in 24.5 seconds, a significant improvement over the 30-minute average required for manual expert diagnosis.
- Evolution: Longitudinal testing showed that as the system accumulates more data, its diagnostic accuracy steadily improves before reaching a high-performance plateau.
Discussion and Insights
The success of BSODiag highlights several key principles in infrastructure management. First, multi-modal data is essential; while incidents capture major failures, they often have omissions that only alerts can fill. Second, the combination of historical failure knowledge with current physical topology allows the system to diagnose new failure patterns it has not previously encountered. Finally, the authors emphasize that identifying the failure path is as vital as the root cause; missing a secondary damaged component during repair leaves the system inherently unstable.
Conclusion and Future Work
BSODiag demonstrates that unsupervised frameworks can effectively manage the complexity of large-scale cloud outages. While highly effective, future iterations will focus on reducing reliance on initial expert rule trees and improving the model's adaptability to the short "re-learning" periods required when new, differentiated services are deployed in the cloud. Integrating more granular metrics without overwhelming the system's efficiency remains a primary objective for future research.
Summary updated