Cosine: A Cloud-Cost Optimized Self-Designing Key-Value Storage Engine
Subarna Chatterjee, Meena Jagadeesan, Wilson Qin, Stratos Idreos
摘要
We present a self-designing key-value storage engine, Cosine, which can always take the shape of the close to "perfect" engine architecture given an input workload, a cloud budget, a target performance, and required cloud SLAs. By identifying and formalizing the first principles of storage engine layouts and core key-value algorithms, Cosine constructs a massive design space comprising of sextillion (10 36 ) possible storage engine designs over a diverse space of hardware and cloud pricing policies for three cloud providers - AWS, GCP, and Azure. Cosine spans across diverse designs such as Log-Structured Merge-trees, B-trees, Log-Structured Hash-tables, in-memory accelerators for filters and indexes as well as trillions of hybrid designs that do not appear in the literature or industry but emerge as valid combinations of the above. Cosine includes a unified distribution-aware I/O model and a learned concurrency-aware CPU model that with high accuracy can calculate the performance and cloud cost of any possible design on any workload and virtual machines. Cosine can then search through that space in a matter of seconds to find the best design and materializes the actual code of the resulting storage engine design using a templated Rust implementation. We demonstrate that on average Cosine outperforms state-of-the-art storage engines such as write-optimized RocksDB, read-optimized WiredTiger, and very write-optimized FASTER by 53x, 25x, and 20x, respectively, for diverse workloads, data sizes, and cloud budgets across all YCSB core workloads and many variants.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Fast RDMA-based Ordered Key-Value Store using Remote Learned Cache 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- CAMAL: Optimizing LSM-trees via Active Learning 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- CAMAL: Optimizing LSM-trees via Active Learning 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- CAMAL: Optimizing LSM-trees via Active Learning 引用了 Constructing and Analyzing the LSM Compaction Design Space
- CAMAL: Optimizing LSM-trees via Active Learning 引用了 Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads
- Constructing and Analyzing the LSM Compaction Design Space 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- Constructing and Analyzing the LSM Compaction Design Space 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- TreeLine: An Update-In-Place Key-Value Store for Modern Storage 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
- Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads 引用了 Constructing and Analyzing the LSM Compaction Design Space
- Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads 引用了 TreeLine: An Update-In-Place Key-Value Store for Modern Storage
- GRF: A Global Range Filter for LSM-Trees with Shape Encoding 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
- GRF: A Global Range Filter for LSM-Trees with Shape Encoding 引用了 Constructing and Analyzing the LSM Compaction Design Space
- GRF: A Global Range Filter for LSM-Trees with Shape Encoding 引用了 Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads
- SageDB: An Instance-Optimized Data Analytics System 引用了 From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
引用它的顶会 Paper18
- TreeLine: An Update-In-Place Key-Value Store for Modern StorageGeoffrey X. Yu, Markos Markakis, Andreas Kipf, Per-Åke Larson 等VLDB 2023 · 36 次引用
- Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic WorkloadsDingheng Mo, Fanchao Chen, Siqiang Luo, Caihua ShanSIGMOD 2024 · 26 次引用
- SageDB: An Instance-Optimized Data Analytics SystemJialin Ding, Ryan Marcus, Andreas Kipf, Vikram Nathan 等VLDB 2022 · 18 次引用
- GRF: A Global Range Filter for LSM-Trees with Shape EncodingHengrui Wang, Te Guo, Junzhao Yang, Huanchen ZhangSIGMOD 2024 · 15 次引用
- CAMAL: Optimizing LSM-trees via Active LearningWeiping Yu, Siqiang Luo, Zihao Yu, Gao CongSIGMOD 2025 · 11 次引用
它引用的 Paper12
- From WiscKey to Bourbon: A Learned Index for Log-Structured Merge TreesYifan Dai, Yien Xu, Aishwarya Ganesan, Ramnatthan Alagappan 等OSDI 2020 · 138 次引用
- Fast RDMA-based Ordered Key-Value Store using Remote Learned CacheXingda Wei, Rong Chen, Haibo ChenOSDI 2020 · 93 次引用
- Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value StoresSiqiang Luo, Subarna Chatterjee, Rafael Ketsetsidis, Niv Dayan 等SIGMOD 2020 · 91 次引用
- AC-Key: Adaptive Caching for LSM-based Key-Value StoresFenggang Wu, Ming-Hong Yang, Baoquan Zhang, David H. C. DuUSENIX ATC 2020 · 81 次引用
- Constructing and Analyzing the LSM Compaction Design SpaceSubhadeep Sarkar, Dimitris Staratzis, Zichen Zhu, Manos AthanassoulisVLDB 2021 · 73 次引用
相关 Paper
- Limousine: Blending Learned and Classical Indexes to Self-Design Larger-than-Memory Cloud Storage EnginesSubarna Chatterjee, Mark F. Pekala, Lev Kruglyak, Stratos IdreosSIGMOD 2024 · 9 次引用
- Dynamic read & write optimization with TurtleKVTony Astolfi, Vidya Silai, Darby Huye, Lan Liu 等VLDB 2026
- Keigo: Co-designing Log-Structured Merge Key-Value Stores with a Non-Volatile, Concurrency-aware Storage HierarchyRúben Adão, Zhongjie Wu, Changjun Zhou, Oana Balmau 等VLDB 2025
- Making LSM-Tree-based Key-Value Store Practical and Efficient for Multi-Tenant Serverless Cloud DatabasesYingjia Wang, Caixin Gong, Guoyun Zhu, Sheng Wang 等SIGMOD 2026 · 1 次引用
- ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic WorkloadsJunfeng Liu, Haoxuan Xie, Siqiang LuoVLDB 2026
