TL;DR
This paper tackles the challenge of accurately labeling production incidents in large-scale cloud systems like Microsoft Azure. They introduce AutoARTS, a system that combines a novel, hierarchical taxonomy of root causes with an automated tool to help engineers efficiently and accurately identify these causes, significantly improving incident analysis and reliability efforts.
What Problem Does This Paper Address?
In massive cloud platforms like Microsoft Azure, production incidents are an unfortunate reality. To improve reliability, understanding why these incidents happen is crucial. The standard practice involves manually analyzing "post-incident reports" (PIRs) and assigning "root cause tags." However, this manual process is plagued by several issues:
- Incompleteness: Existing taxonomies are often ad-hoc and don't cover the vast array of potential causes, leading to many incidents being labeled as "Other."
- Error-prone and Inconsistent: Manual labeling is subjective, time-consuming, and prone to errors, with a significant percentage of manually assigned tags being incorrect.
- Lack of Granularity: A single root cause tag often fails to capture the multiple contributing factors that lead to an incident, hindering a comprehensive understanding.
This paper aims to address these limitations by developing a more robust taxonomy and an automated system to assist in the labeling process.
Methods
The authors propose a three-pronged approach:
- Extensive Empirical Analysis: They conducted a multi-year analysis of over 2000 high-impact incidents across 468 Microsoft Azure services. This involved meticulously reading PIRs, discussion threads, and even work items to identify all contributing factors, not just a single root cause.
- Novel Hierarchical Taxonomy (ARTS): Based on their empirical findings, they developed the Azure Reliability Tagging System (ARTS). This taxonomy is hierarchical, organized into broad themes and progressively finer sub-themes, aiming for comprehensiveness and ease of use. It currently includes 346 leaf nodes representing specific root cause tags.
- Automated Tool (AutoARTS): To address the manual labeling challenges, they built AutoARTS, which performs two key tasks:
- Hierarchical Root Cause Classification: AutoARTS uses a multi-label text classification technique, specifically a model called HiAGM, which leverages the hierarchical structure of the ARTS taxonomy. This helps overcome data sparsity for less common root causes by transferring knowledge from related categories.
- Context Extraction: The tool extracts concise text snippets from PIRs that highlight important context for the identified root causes. This helps engineers quickly understand the contributing factors without reading lengthy reports. They fine-tuned a Pegasus model for this task, adapting it to the domain-specific language of PIRs.
Datasets
- Internal Microsoft PIRs: The core dataset consists of over 2000 high-impact production incidents from 468 Microsoft Azure services, analyzed over several years. This dataset was used to develop the ARTS taxonomy and train the AutoARTS models.
- OCE-assigned Tags: A subset of PIRs were labeled with root cause tags assigned by On-Call Engineers (OCEs). This data was used for pre-training and fine-tuning language models, although its inherent inaccuracies were acknowledged.
- Publicly Available ARTS Taxonomy: The authors have open-sourced their ARTS taxonomy for broader use.
Key Insights and Ideas
- Incidents are Multifaceted: A significant finding is that most production incidents are not caused by a single root cause but by a complex interplay of multiple contributing factors. This challenges previous research that focused on isolating a single cause.
- Dynamic Nature of Root Causes: New root causes emerge over time as systems evolve, highlighting the need for a continuous process of identifying and updating root cause taxonomies.
- Observability is Key: Lack of monitoring and insufficient telemetry are identified as the most common contributing factors to incidents, underscoring the importance of robust observability.
- Hierarchical Taxonomies are Beneficial: The hierarchical structure of the ARTS taxonomy significantly improves classification accuracy compared to a flat taxonomy, demonstrating the value of encoding relationships between root causes.
- Domain-Specific Fine-tuning is Crucial: Standard language models like BERT, even when fine-tuned on OCE-assigned tags, perform poorly on this domain. However, fine-tuning models like Pegasus on domain-specific PIR data significantly improves context extraction.
Key Results
- Comprehensive Taxonomy: The ARTS taxonomy identifies 346 distinct root cause categories, representing the most comprehensive empirical analysis of production incidents in cloud systems to date.
- Multi-Factor Incidents: Over 75% of analyzed incidents had more than one contributing factor, with over 50% having four or more.
- AutoARTS Performance:
- The hierarchical classification model (HiAGM) achieved a weighted-F1 score significantly higher than flat taxonomy approaches and fine-tuned BERT models.
- The fine-tuned Pegasus model for context extraction achieved state-of-the-art performance across ROUGE and BLEU metrics, outperforming pre-trained models and other summarization techniques.
- User Study: A user study with an expert revealed that AutoARTS' generated contexts were highly useful (4.6/5) for identifying contributing factors and were succinct. The tool also helped the expert identify two previously missed root cause tags, demonstrating its potential to uncover new insights.
Limitations and Future Work
- Data Imbalance: The imbalance in tag distribution in the training data led to misclassifications for incidents with less frequent tags.
- Model Generalization: While the ARTS taxonomy is believed to generalize to other cloud systems, AutoARTS was trained on Microsoft Azure data. Further validation on external datasets would be beneficial.
- Future Work: The authors plan to fully automate the root cause labeling task, incorporate more engineer feedback, and leverage larger training datasets. They also envision the open-sourced taxonomy fostering further research and allowing for the detection of new root cause categories from generated contexts.
Summary updated