Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads
Dingheng Mo, Fanchao Chen, Siqiang Luo, Caihua Shan
Abstract
LSM-trees are widely adopted as the storage backends of key-value stores. However, optimizing the system performance under dynamic workloads has not been sufficiently studied 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 design 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, that facilitates efficient transitions between different compaction policies, which addresses the key bottleneck for 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 across diverse workloads, achieving up to 4x better end-to-end performance than the RocksDB system under various settings.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Oasis: An Optimal Disjoint Segmented Learned Range Filter cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- Oasis: An Optimal Disjoint Segmented Learned Range Filter cites FPGA-Accelerated Compactions for LSM-based Key-Value Store
- Rethinking The Compaction Policies in LSM-trees cites Oasis: An Optimal Disjoint Segmented Learned Range Filter
- Rethinking The Compaction Policies in LSM-trees cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- Rethinking The Compaction Policies in LSM-trees cites FPGA-Accelerated Compactions for LSM-based Key-Value Store
- Rethinking The Compaction Policies in LSM-trees cites Constructing and Analyzing the LSM Compaction Design Space
- Rethinking The Compaction Policies in LSM-trees cites GRF: A Global Range Filter for LSM-Trees with Shape Encoding
- CAMAL: Optimizing LSM-trees via Active Learning cites From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- CAMAL: Optimizing LSM-trees via Active Learning cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- CAMAL: Optimizing LSM-trees via Active Learning cites FPGA-Accelerated Compactions for LSM-based Key-Value Store
- CAMAL: Optimizing LSM-trees via Active Learning cites Constructing and Analyzing the LSM Compaction Design Space
- CAMAL: Optimizing LSM-trees via Active Learning cites An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management Systems
- Constructing and Analyzing the LSM Compaction Design Space cites From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- Constructing and Analyzing the LSM Compaction Design Space cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- GRF: A Global Range Filter for LSM-Trees with Shape Encoding cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- GRF: A Global Range Filter for LSM-Trees with Shape Encoding cites Constructing and Analyzing the LSM Compaction Design Space
- Aster: Enhancing LSM-structures for Scalable Graph Database cites CAMAL: Optimizing LSM-trees via Active Learning
Cited by top-tier papers14
- Oasis: An Optimal Disjoint Segmented Learned Range FilterGuanduo Chen, Meng Li, Siqiang Luo, Zhenying HeVLDB 2024 · 17 citations
- GRF: A Global Range Filter for LSM-Trees with Shape EncodingHengrui Wang, Te Guo, Junzhao Yang, Huanchen ZhangSIGMOD 2024 · 15 citations
- CAMAL: Optimizing LSM-trees via Active LearningWeiping Yu, Siqiang Luo, Zihao Yu, Gao CongSIGMOD 2025 · 11 citations
- Aster: Enhancing LSM-structures for Scalable Graph DatabaseDingheng Mo, Junfeng Liu, Fan Wang, Siqiang LuoSIGMOD 2025 · 10 citations
- Rethinking The Compaction Policies in LSM-treesHengrui Wang, Jiansheng Qiu, Fangzhou Yuan, Huanchen ZhangSIGMOD 2025 · 9 citations
Builds on17
- From WiscKey to Bourbon: A Learned Index for Log-Structured Merge TreesYifan Dai, Yien Xu, Aishwarya Ganesan, Ramnatthan Alagappan et al.OSDI 2020 · 138 citations
- An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management SystemsDana Van Aken, Dongsheng Yang, Sebastien Brillard, Ari Fiorino et al.VLDB 2021 · 108 citations
- FPGA-Accelerated Compactions for LSM-based Key-Value StoreTeng Zhang, Jianying Wang, Xuntao Cheng, Hao Xu et al.FAST 2020 · 99 citations
- Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value StoresSiqiang Luo, Subarna Chatterjee, Rafael Ketsetsidis, Niv Dayan et al.SIGMOD 2020 · 91 citations
- Constructing and Analyzing the LSM Compaction Design SpaceSubhadeep Sarkar, Dimitris Staratzis, Zichen Zhu, Manos AthanassoulisVLDB 2021 · 73 citations
Related papers
- ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic WorkloadsJunfeng Liu, Haoxuan Xie, Siqiang LuoVLDB 2026
- Enhancing LSM-Tree Key-Value Stores for Read-Modify-Writes via Key-Delta SeparationJinhong Li, Yanjing Ren, Shujie Han, Patrick P. C. LeeICDE 2024 · 6 citations
- Structural Designs Meet Optimality: Exploring Optimized LSM-tree Structures in a Colossal Configuration SpaceJunfeng Liu, Fan Wang, Dingheng Mo, Siqiang LuoSIGMOD 2024 · 13 citations
- DobLIX: A Dual-Objective Learned Index for Log-Structured Merge TreesAlireza Heidari, Amirhossein Ahmadi, Wei ZhangVLDB 2025 · 4 citations
- Endure: A Robust Tuning Paradigm for LSM Trees Under Workload UncertaintyAndy Huynh, Harshal A. Chaudhari, Evimaria Terzi, Manos AthanassoulisVLDB 2022 · 28 citations
