TL;DR
Cloud systems are complex, and performance issues can be hard to pinpoint. This paper introduces ISOLATE, a novel approach that uses graph neural networks to understand how different system metrics relate to each other over time, and a positive unlabeled learning strategy to handle noisy data. ISOLATE effectively identifies performance issues and pinpoints the problematic metrics, outperforming existing methods.
What Problem Does This Paper Address?
Modern cloud systems are massive and intricate, composed of countless interconnected components like microservices. When performance issues arise, they can lead to service disruptions, SLA violations, and financial losses. While monitoring key performance indicators (KPIs) is standard practice, identifying the root cause of these issues is challenging. Traditional anomaly detection methods often analyze metrics in isolation, missing the crucial dependencies between components. Even advanced graph neural network (GNN) approaches can implicitly embed these correlations, making it difficult to directly identify violations of these expected relationships, which are often strong indicators of performance problems. Furthermore, the sheer volume of metrics and the presence of noisy data (mild issues that don't trigger obvious anomalies) make manual analysis impractical and automated systems prone to false positives and negatives.
Methods
ISOLATE tackles these challenges with a two-pronged approach:
- Relational-Temporal Embedding: This module captures both the relationships between metrics and their temporal patterns.
- Relational Embedding: It constructs a fully connected graph where metrics are nodes. A Graph Attention Network (GAT) is used to learn the correlations between these metrics, creating a relational representation.
-
Temporal Embedding: It uses a Gated Recurrent Unit (GRU) to capture long-term temporal patterns and dilated causal convolutions to extract multi-scale temporal information for each metric. These two embeddings are then concatenated to form a comprehensive relational-temporal representation.
-
Performance Issue Identification with LC-VAE: This part focuses on detecting anomalies and handling noisy training data.
- Positive Unlabeled Learning (PU Learning): To address the difficulty of obtaining reliably labeled anomalous data, ISOLATE uses PU learning. It starts with a small set of confidently labeled "negative" (normal) samples. The model then predicts anomaly scores for the unlabeled data, and samples exceeding a threshold are pseudo-labeled as "positive" (anomalous). This pseudo-labeled data is then used to retrain the model.
- Label-Conditional Variational Autoencoder (LC-VAE): A novel LC-VAE is employed to learn from both the pseudo-labeled and true negative data. Unlike standard VAEs that primarily learn from normal data, the LC-VAE can better distinguish between normal and anomalous patterns by incorporating the label information. The loss function is designed to maximize reconstruction for normal data and minimize it for anomalous data, effectively using the reconstruction error as an anomaly score.
Finally, the learned correlation graph from the relational embedding is used to localize the anomalous metrics, providing engineers with insights into the root cause.
Datasets
The paper evaluates ISOLATE on:
- Public Dataset: SMD (Server Machine Dataset), a widely-used dataset containing monitoring metrics from 28 machines over 5 weeks. Anomalies were labeled by domain experts.
- Industrial Datasets: Two datasets collected from large-scale online services of Huawei Cloud. These datasets contain metrics like CPU Usage, Memory Usage, and Interface Throughput, with anomalies labeled by experienced software engineers based on incident reports. These datasets include both correlation-violated and non-correlation-violated issues.
Key Insights and Ideas
- Correlation Violation is Key: The paper strongly emphasizes that simply detecting temporal anomalies in individual metrics is insufficient. The violation of expected correlations between metrics is a more powerful indicator of performance issues in complex cloud systems.
- Explicitly Capturing Correlations: ISOLATE's graph attention mechanism explicitly models and learns these inter-metric correlations, which is crucial for identifying anomalies that might not be apparent from single-metric analysis.
- PU Learning for Real-World Data: The use of PU learning is a practical solution for dealing with the inherent noise and lack of labeled anomalies in real-world cloud monitoring data, significantly improving robustness.
- LC-VAE for Better Anomaly Discrimination: The Label-Conditional VAE enhances the ability to differentiate true anomalies from normal patterns, especially when dealing with pseudo-labeled data.
- Localization for Actionable Insights: By leveraging the learned correlation graph, ISOLATE not only detects anomalies but also pinpoints the specific metrics involved, providing actionable insights for engineers.
Key Results
- Superior Anomaly Detection: ISOLATE achieved the best performance across three datasets, with an average F1 score of 0.945. This significantly outperformed eighteen state-of-the-art baseline methods.
- Effective Metrics Localization: ISOLATE demonstrated strong performance in localizing anomalous metrics, achieving a Hit@3 rate of 0.920.
- Component Effectiveness: Ablation studies showed that both the relational-temporal embedding and the PU learning components contribute significantly to ISOLATE's overall performance, with the relational-temporal embedding having a larger impact.
- Practical Deployment: ISOLATE has been successfully deployed in Huawei Cloud's performance issue detection system, demonstrating its real-world applicability and effectiveness.
- Robustness to Noise: The PU learning strategy helps ISOLATE mitigate the impact of noisy data, leading to more reliable anomaly detection.
Limitations and Future Work
- Adaptability to Evolving Patterns: The paper acknowledges that ISOLATE, like many models, may struggle with rapidly evolving metric patterns and correlations due to frequent software and application upgrades. However, they propose weekly retraining as a solution, which has shown to maintain stable performance.
- Computational Cost: While ISOLATE is deployed at the node or service level (typically <100 metrics), the complexity of large-scale cloud systems can still lead to significant computational costs. The authors note that efficiency is enhanced with more GPUs.
- Interpretability: While the correlation violation insights offer some interpretability, ISOLATE is not as directly interpretable as methods like decision trees.
- Generalizability: While tested on diverse datasets, the authors acknowledge that results might vary across different cloud providers, industries, or specific use cases.
Future work could explore more advanced methods for capturing evolving patterns and further enhancing interpretability.
Summary updated