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

学习优化LSM树:面向动态工作负载的基于强化学习的键值存储

Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads

Nanyang Technological University(南洋理工大学);Fudan University(复旦大学);Microsoft Research Asia(微软亚洲研究院)

Dingheng Mo, Fanchao Chen, Siqiang Luo, Caihua Shan

AI总结:

本文提出RusKey键值存储,首次利用强化学习在线优化LSM树结构,并设计FLSM树实现压缩策略高效切换,无需先验工作负载知识即可在动态负载下实现最高达RocksDB 4倍的性能提升。

摘要:

LSM树被广泛用作键值存储的存储后端。然而,在动态工作负载下优化系统性能的问题在以往工作中尚未得到充分研究或评估。为填补这一空白,我们提出了RusKey,一个具有以下新特性的键值存储:(1)RusKey是首次尝试在线编排LSM树结构,以在动态工作负载环境下实现稳健性能;(2)RusKey是首个使用强化学习(RL)来指导LSM树变换的研究;(3)RusKey包含一种新的LSM树设计,名为FLSM树,用于在不同压缩策略之间高效转换——这是动态键值存储的瓶颈所在。我们通过理论分析证明了新设计的优越性;(4)与最先进的技术相比,RusKey在系统调整时不需要任何先验工作负载知识。实验表明,RusKey在多样化工作负载中表现出强大的性能稳健性,在各种设置下实现了比RocksDB系统最高达4倍的端到端性能提升。

英文摘要:

LSM-trees are widely adopted as the storage backend of key-value stores. However, optimizing the system performance under dynamic workloads has not been sufficiently studied or evaluated in previous work. To fill the gap, we present RusKey, a key-value store with the following new features: (1) RusKey is a first attempt to orchestrate LSM-tree structures online to enable robust performance under the context of dynamic workloads; (2) RusKey is the first study to use Reinforcement Learning (RL) to guide LSM-tree transformations; (3) RusKey includes a new LSM-tree design, named FLSM-tree, for an efficient transition between different compaction policies -- the bottleneck of dynamic key-value stores. We justify the superiority of the new design with theoretical analysis; (4) RusKey requires no prior workload knowledge for system adjustment, in contrast to state-of-the-art techniques. Experiments show that RusKey exhibits strong performance robustness in diverse workloads, achieving up to 4x better end-to-end performance than the RocksDB system under various settings.

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

↑