arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.01888cs.DBcs.LG
收藏

SafeLoad: 云数据仓库中用于识别内存过载查询的高效准入控制框架

SafeLoad: Efficient Admission Control Framework for Identifying Memory-Overloading Queries in Cloud Data Warehouses

Zhejiang University(浙江大学);Alibaba Cloud Computing(阿里云计算)

Yifan Wu, Yuhan Li, Zhenhua Wang, Zhongle Xie, Dingyu Yang, Ke Chen, Lidan Shou, Bo Tang, Liang Lin, Huan Li, Gang Chen

AI总结:

SafeLoad是首个专门用于识别云数据仓库中内存过载查询的高效准入控制框架,通过混合架构和自调优机制提升预测精度和资源利用效率。

摘要:

内存过载是云数据仓库中常见的资源耗尽形式。当数据库查询因内存过载而失败时,不仅会浪费关键资源如CPU时间,还会破坏核心业务流程的执行,因为内存过载(MO)查询通常是复杂工作流的一部分。如果能提前识别此类查询并将其调度到内存丰富的无服务器集群中,可以防止资源浪费和查询执行失败。因此,云数据仓库希望有一个具有高预测精度、可解释性、效率和适应性的准入控制框架,以有效识别MO查询。然而,现有的准入控制框架主要集中在SLA满足和资源隔离等场景,对识别MO查询的精度有限。此外,缺乏公开可用的带有工作负载的MO标记数据集用于训练和基准测试。为解决这些挑战,我们提出了SafeLoad,这是首个专门设计用于识别MO查询的查询准入控制框架。此外,我们发布了SafeBench,一个开源的工业级基准测试平台,包含1.5亿个真实查询。SafeLoad首先使用可解释的判别规则过滤出内存安全的查询。然后应用一种混合架构,整合了全局模型和集群级模型,并辅以误预测修正模块来识别MO查询。此外,一种自调优的配额管理机制会根据集群动态调整预测配额以提高精度。实验结果表明,SafeLoad在预测性能上达到最佳水平,具有低在线和离线时间开销。具体而言,SafeLoad在最佳基线之上将精度提高了高达66%,与没有SafeLoad的场景相比,将浪费的CPU时间减少了高达8.09倍。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑