TL;DR
This paper introduces two deep learning approaches, temporal and spatial, to predict anomalies in SAP HANA Key Performance Indicators (KPIs) for proactive maintenance. By combining these methods, they achieve effective anomaly detection in complex, high-dimensional database systems, paving the way for more reliable cloud-based operations.
What Problem Does This Paper Address?
Database Management Systems (DBMSs) are critical for modern enterprise applications, and their reliable operation is paramount. As DBMSs become more complex and operate in cloud environments with thousands of instances, manual monitoring and maintenance become infeasible and costly. Traditional methods for detecting problems, like rule-based systems or stochastic modeling, struggle with the high dimensionality and intricate patterns of KPIs generated by these systems. This paper addresses the challenge of proactively identifying potential issues in SAP HANA by leveraging deep learning to analyze these complex KPI data streams.
Methods
The authors propose two complementary deep learning approaches:
- Temporal Learning Approach: This method uses a Recurrent Neural Network (RNN) encoder-decoder architecture, specifically Long Short-Term Memory (LSTM) networks. It's designed to detect unforeseen abnormal patterns by learning the typical temporal sequences of KPIs from unlabeled historical data. The encoder compresses past KPI sequences into a fixed-length representation, and the decoder uses this representation to predict future KPI values. Anomalies are detected when the predicted values significantly deviate from the actual observed values.
- Spatial Learning Approach: This approach employs Convolutional Neural Networks (CNNs), specifically a ResNet architecture. It's tailored to classify known anomalies by learning spatial features and interrelationships between different KPIs. This method utilizes labeled data, where anomalies have been identified and tagged by database experts. It involves preprocessing steps like feature selection, handling missing values and time delays by creating augmented dimensions, and then applying min-max normalization.
The system integrates these models within SAP HANA, utilizing Google TensorFlow for the deep learning computations via the SAP HANA External Machine Learning Library (EML).
Datasets
The study uses real-world KPI data collected from several SAP HANA systems over a monitored period. The data was collected monthly, with approximately 100,000 data points per KPI over 12 days. Anomalies were labeled by database administrators, with 25 distinct episodes of anomalies lasting from 5 minutes to 3 hours. The paper does not introduce a new benchmark dataset but utilizes existing operational data from SAP HANA instances.
Key Insights and Ideas
- Complementarity of Temporal and Spatial Learning: The core idea is that neither temporal nor spatial learning alone is sufficient. Temporal learning excels at detecting novel, unexpected anomalies, while spatial learning is better at recognizing known anomaly patterns. Combining them provides a more robust and comprehensive anomaly detection system.
- High Dimensionality is a Major Hurdle: The sheer number of KPIs in a DBMS makes manual analysis and traditional modeling extremely difficult. Deep learning's ability to learn complex, non-linear relationships in high-dimensional data is crucial.
- Importance of Labeled Data for Specific Issues: While unsupervised temporal learning is valuable for general anomaly detection, having expert-labeled data allows for more precise classification of known critical issues, which is essential for targeted maintenance.
- Inter-System Variability: The study highlights that anomaly patterns can be specific to individual systems due to differences in hardware and workloads. This suggests that a one-size-fits-all model might not be optimal, and system-specific or ensemble approaches could be beneficial.
Key Results
- Temporal Learning Performance: The temporal learning approach achieved Area Under the Curve (AUC) scores ranging from 0.81 to 0.99 across different HANA systems and months, demonstrating its effectiveness in detecting anomalies by modeling normal KPI behavior.
- Spatial Learning Generalization: The spatial learning model showed good performance when trained and tested on data from the same HANA system (AUCs around 0.95-0.97). However, inter-system validation (training on one system and testing on another) yielded lower performance, indicating system-specific anomaly characteristics.
- Complementary Detection: Experimental examples showed that the temporal approach could detect an issue slightly after it occurred, while the spatial approach could sometimes predict an issue even before it manifested, showcasing their complementary nature in anomaly detection.
Limitations and Future Work
- Inter-System Performance: The spatial learning model's performance decreased significantly when applied to systems different from the one it was trained on. This is attributed to variations in hardware and workloads across systems.
- Future Work:
- Ensemble Learning: Combining the temporal and spatial models into an ensemble to leverage their strengths and improve overall prediction accuracy.
- Continuous Learning: Developing systems that can continuously learn and adapt to evolving patterns and new anomalies without constant manual retraining.
- Meta-Learning: Exploring meta-learning to learn global patterns across multiple systems, enabling faster adaptation to new, unseen anomalies with limited training data.
- Integration with Unavailability Checks: Further integrating the anomaly detection system with HANA's unavailability check mechanisms to provide more actionable insights.
Summary updated