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

面向大规模云数据库的实时工作负载模式分析

Real-time Workload Pattern Analysis for Large-scale Cloud Databases

Zhejiang University(浙江大学);Aalborg University(奥尔堡大学);Alibaba Group(阿里巴巴集团);Alibaba-Zhejiang University Joint Institute of Frontier Technologies(阿里巴巴-浙江大学前沿技术联合研究院)

Jiaqi Wang, Tianyi Li, Anni Wang, Xiaoze Liu, Lu Chen, Jie Chen, Jianye Liu, Junyang Wu, Feifei Li, Yunjun Gao

AI总结:

本文提出实时系统 Alibaba Workload Miner(AWM),通过编码 SQL 查询日志、按业务组挖掘工作负载模式并训练分类模型来优化云数据库查询处理,实验表明其模式发现准确率提升 66%,在线推理延迟降低 22%。

摘要:

在云系统上托管数据库服务已成为一种普遍做法。这导致数据库工作负载量不断增加,从而为模式分析提供了机会。从业务逻辑视角发现工作负载模式有助于更好地理解数据库系统的趋势和特征。然而,现有的工作负载模式发现系统并不适用于业界普遍采用的大规模云数据库。这是因为大规模云数据库的工作负载模式通常远比普通数据库复杂。本文提出 Alibaba Workload Miner(AWM),一个用于在复杂的大规模工作负载中发现工作负载模式的实时系统。AWM 对从用户请求中记录的 SQL 查询模式进行编码和发现,并基于发现的模式优化查询处理。首先,数据采集与预处理模块收集流式查询日志,并将其编码为具有丰富语义上下文和执行特征的高维特征嵌入。其次,在线工作负载挖掘模块按业务组分离编码后的查询,并发现每个组的工作负载模式。同时,离线训练模块收集标签,并利用这些标签训练分类模型。最后,基于模式的优化模块利用发现的模式优化云数据库中的查询处理。在一个合成数据集和两个真实数据集(提取自阿里云数据库)上的大量实验结果表明,与当前最先进的方法相比,AWM 将模式发现的准确率提高了 66%,并将在线推理的延迟降低了 22%。

英文摘要:

Hosting database services on cloud systems has become a common practice. This has led to the increasing volume of database workloads, which provides the opportunity for pattern analysis. Discovering workload patterns from a business logic perspective is conducive to better understanding the trends and characteristics of the database system. However, existing workload pattern discovery systems are not suitable for large-scale cloud databases which are commonly employed by the industry. This is because the workload patterns of large-scale cloud databases are generally far more complicated than those of ordinary databases. In this paper, we propose Alibaba Workload Miner (AWM), a real-time system for discovering workload patterns in complicated large-scale workloads. AWM encodes and discovers the SQL query patterns logged from user requests and optimizes the querying processing based on the discovered patterns. First, Data Collection & Preprocessing Module collects streaming query logs and encodes them into high-dimensional feature embeddings with rich semantic contexts and execution features. Next, Online Workload Mining Module separates encoded queries by business groups and discovers the workload patterns for each group. Meanwhile, Offline Training Module collects labels and trains the classification model using the labels. Finally, Pattern-based Optimizing Module optimizes query processing in cloud databases by exploiting discovered patterns. Extensive experimental results on one synthetic dataset and two real-life datasets (extracted from Alibaba Cloud databases) show that AWM enhances the accuracy of pattern discovery by 66% and reduce the latency of online inference by 22%, compared with the state-of-the-arts.

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

↑