arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.14473cs.DB
收藏

面向云数据库的动态安全配置调优

Towards Dynamic and Safe Configuration Tuning for Cloud Databases

Xinyi Zhang, Hong Wu, Yang Li, Jian Tan, Feifei Li, Bin Cui

摘要:

数据库系统的配置旋钮对于实现高吞吐量和低延迟是必不可少的。最近,使用机器学习方法(ML)的自动调优系统已经显示出与有经验的数据库管理员(DBA)相比找到更好的配置。然而,在生产环境中应用现有系统仍然存在差距,特别是在云中。首先,它们在有限的时间窗口内对给定的工作负载进行调优,而忽略了工作负载和数据的动态性。其次,它们依赖于复制的实例,在对配置进行采样时不考虑数据库的可用性,这使得调优成本高、延迟且不安全。为了填补这些空白,我们提出了OnlineTune,它可以在不断变化的云环境中安全地调整在线数据库。为了适应数据库的动态性,OnlineTune将环境因素作为上下文特征嵌入数据库中,并采用上下文空间划分的上下文贝叶斯优化算法对数据库进行自适应、可扩展的优化。为了追求调优过程中的安全性,我们利用黑盒和白盒知识来评估配置的安全性,并通过子空间自适应提出了一种安全的探索策略。大大降低了应用不良配置的风险。我们对来自基准测试和真实工作负载的动态工作负载进行评估。与现有方法相比,OnlineTune在累计性能上提高了14.4%~165.3%,同时减少了91.0%~99.5%的不安全配置建议。

英文摘要:

Configuration knobs of database systems are essential to achieve high throughput and low latency. Recently, automatic tuning systems using machine learning methods (ML) have shown to find better configurations compared to experienced database administrators (DBAs). However, there are still gaps to apply the existing systems in production environments, especially in the cloud. First, they conduct tuning for a given workload within a limited time window and ignore the dynamicity of workloads and data. Second, they rely on a copied instance and do not consider the availability of the database when sampling configurations, making the tuning expensive, delayed, and unsafe. To fill these gaps, we propose OnlineTune, which tunes the online databases safely in changing cloud environments. To accommodate the dynamicity, OnlineTune embeds the environmental factors as context feature and adopts contextual Bayesian Optimization with context space partition to optimize the database adaptively and scalably. To pursue safety during tuning, we leverage the black-box and the white-box knowledge to evaluate the safety of configurations and propose a safe exploration strategy via subspace adaptation.%, greatly decreasing the risks of applying bad configurations. We conduct evaluations on dynamic workloads from benchmarks and real-world workloads. Compared with the state-of-the-art methods, OnlineTune achieves 14.4%~165.3% improvement on cumulative performance while reducing 91.0%~99.5% unsafe configuration recommendations.

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

↑