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

通过机器学习进行NoSQL数据库调优

NoSQL Database Tuning through Machine Learning

Florian Eppinger, Uta Störl

摘要:

NoSQL数据库已经成为许多大数据和实时Web应用程序的重要组成部分。它们的分布式特性和可扩展性使其成为各种用例的理想数据存储库。虽然NoSQL数据库是以默认的“现成”配置提供的,但它们提供了配置设置,以根据特定的用例和环境调整数据库的行为和性能。配置设置的丰富性和常常难以察觉的相互依赖性使得优化和性能调优NoSQL系统变得困难。没有一种通用的配置,因此在优化NoSQL数据库的配置时需要考虑工作负载,物理设计和可用资源。这项工作探讨了机器学习作为一种自动调优NoSQL数据库以获得最佳性能的方法。使用随机森林和梯度提升决策树机器学习算法,将多个机器学习模型与包含NoSQL物理配置(复制和分片)属性的训练数据集进行拟合。然后采用最佳模型作为代理模型,以使用黑盒优化算法优化数据库管理系统的吞吐量和延迟的配置设置。使用Apache Cassandra数据库,进行了多个实验,以证明这种方法的可行性,即使在不同的物理配置。与默认配置设置相比,优化后的DBMS配置使吞吐量提高了4%,读取延迟降低了43%,写入延迟降低了39%。

英文摘要:

NoSQL databases have become an important component of many big data and real-time web applications. Their distributed nature and scalability make them an ideal data storage repository for a variety of use cases. While NoSQL databases are delivered with a default ''off-the-shelf'' configuration, they offer configuration settings to adjust a database's behavior and performance to a specific use case and environment. The abundance and oftentimes imperceptible inter-dependencies of configuration settings make it difficult to optimize and performance-tune a NoSQL system. There is no one-size-fits-all configuration and therefore the workload, the physical design, and available resources need to be taken into account when optimizing the configuration of a NoSQL database. This work explores Machine Learning as a means to automatically tune a NoSQL database for optimal performance. Using Random Forest and Gradient Boosting Decision Tree Machine Learning algorithms, multiple Machine Learning models were fitted with a training dataset that incorporates properties of the NoSQL physical configuration (replication and sharding). The best models were then employed as surrogate models to optimize the Database Management System's configuration settings for throughput and latency using a Black-box Optimization algorithm. Using an Apache Cassandra database, multiple experiments were carried out to demonstrate the feasibility of this approach, even across varying physical configurations. The tuned DBMS configurations yielded throughput improvements of up to 4%, read latency reductions of up to 43%, and write latency reductions of up to 39% when compared to the default configuration settings.

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

↑