[Paper Review] SafeLoad: Efficient Admission Control Framework for Identifying Memory-Overloading Queries in Cloud Data Warehouses
SafeLoad is an admission control framework that identifies memory-overloading queries in cloud data warehouses using a hybrid global-and-cluster model, with a self-tuning quota mechanism and a new MO-labeled benchmark SafeBench.
Memory overload is a common form of resource exhaustion in cloud data warehouses. When database queries fail due to memory overload, it not only wastes critical resources such as CPU time but also disrupts the execution of core business processes, as memory-overloading (MO) queries are typically part of complex workflows. If such queries are identified in advance and scheduled to memory-rich serverless clusters, it can prevent resource wastage and query execution failure. Therefore, cloud data warehouses desire an admission control framework with high prediction precision, interpretability, efficiency, and adaptability to effectively identify MO queries. However, existing admission control frameworks primarily focus on scenarios like SLA satisfaction and resource isolation, with limited precision in identifying MO queries. Moreover, there is a lack of publicly available MO-labeled datasets with workloads for training and benchmarking. To tackle these challenges, we propose SafeLoad, the first query admission control framework specifically designed to identify MO queries. Alongside, we release SafeBench, an open-source, industrial-scale benchmark for this task, which includes 150 million real queries. SafeLoad first filters out memory-safe queries using the interpretable discriminative rule. It then applies a hybrid architecture that integrates both a global model and cluster-level models, supplemented by a misprediction correction module to identify MO queries. Additionally, a self-tuning quota management mechanism dynamically adjusts prediction quotas per cluster to improve precision. Experimental results show that SafeLoad achieves state-of-the-art prediction performance with low online and offline time overhead. Specifically, SafeLoad improves precision by up to 66% over the best baseline and reduces wasted CPU time by up to 8.09x compared to scenarios without SafeLoad.
Motivation & Objective
- Address memory overload as a critical resource-exhaustion issue in cloud data warehouses.
- Provide an admission control framework with high precision, interpretability, efficiency, and adaptability to detect memory-overloading queries (MO queries).
- Release an open industrial-scale benchmark (SafeBench) with real-world workload data to train and benchmark MO-query detection.
Proposed method
- Filter memory-safe queries using an interpretable discriminative rule.
- Use a hybrid architecture combining a global model and cluster-level models.
- Incorporate a misprediction correction module to refine MO-query identification.
- Apply a self-tuning quota management mechanism that dynamically adjusts prediction quotas per cluster.
- Aim for low online and offline overhead while maintaining high prediction precision.
Experimental results
Research questions
- RQ1How accurately can MO queries be identified in cloud data warehouses based on query features and workload context?
- RQ2Does a hybrid global-plus-cluster modeling approach improve MO-query detection over baselines?
- RQ3Can a self-tuning quota mechanism improve precision and resource utilization across clusters?
- RQ4What is the impact of SafeLoad on wasted CPU time and overall system efficiency?
- RQ5How does SafeLoad perform on a large-scale, labeled MO-query benchmark like SafeBench?
Key findings
- SafeLoad achieves state-of-the-art prediction performance with low online and offline time overhead.
- Precision improvement of up to 66% over the best baseline.
- Wasted CPU time is reduced by up to 8.09x compared to scenarios without SafeLoad.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.