Lune

VLDB2022Top-tier venue

Cosine: A Cloud-Cost Optimized Self-Designing Key-Value Storage Engine

Subarna Chatterjee, Meena Jagadeesan, Wilson Qin, Stratos Idreos

Abstract

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.

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.

18 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fast RDMA-based Ordered Key-Value Store using Remote Learned Cache cites From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
  • 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 Constructing and Analyzing the LSM Compaction Design Space
  • CAMAL: Optimizing LSM-trees via Active Learning cites Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads
  • 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
  • TreeLine: An Update-In-Place Key-Value Store for Modern Storage cites 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 cites 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 cites 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 cites Constructing and Analyzing the LSM Compaction Design Space
  • Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads cites TreeLine: An Update-In-Place Key-Value Store for Modern Storage
  • 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
  • GRF: A Global Range Filter for LSM-Trees with Shape Encoding cites Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloads
  • SageDB: An Instance-Optimized Data Analytics System cites From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. TreeLine: An Update-In-Place Key-Value Store for Modern StorageGeoffrey X. Yu, Markos Markakis, Andreas Kipf, Per-Åke Larson et al.VLDB 2023 · 36 citations
  2. 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 citations
  3. SageDB: An Instance-Optimized Data Analytics SystemJialin Ding, Ryan Marcus, Andreas Kipf, Vikram Nathan et al.VLDB 2022 · 18 citations
  4. GRF: A Global Range Filter for LSM-Trees with Shape EncodingHengrui Wang, Te Guo, Junzhao Yang, Huanchen ZhangSIGMOD 2024 · 15 citations
  5. CAMAL: Optimizing LSM-trees via Active LearningWeiping Yu, Siqiang Luo, Zihao Yu, Gao CongSIGMOD 2025 · 11 citations

Builds on12

  1. 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
  2. Fast RDMA-based Ordered Key-Value Store using Remote Learned CacheXingda Wei, Rong Chen, Haibo ChenOSDI 2020 · 93 citations
  3. 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
  4. AC-Key: Adaptive Caching for LSM-based Key-Value StoresFenggang Wu, Ming-Hong Yang, Baoquan Zhang, David H. C. DuUSENIX ATC 2020 · 81 citations
  5. Constructing and Analyzing the LSM Compaction Design SpaceSubhadeep Sarkar, Dimitris Staratzis, Zichen Zhu, Manos AthanassoulisVLDB 2021 · 73 citations

Related papers

  1. 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 citations
  2. Dynamic read & write optimization with TurtleKVTony Astolfi, Vidya Silai, Darby Huye, Lan Liu et al.VLDB 2026
  3. 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 et al.VLDB 2025
  4. Making LSM-Tree-based Key-Value Store Practical and Efficient for Multi-Tenant Serverless Cloud DatabasesYingjia Wang, Caixin Gong, Guoyun Zhu, Sheng Wang et al.SIGMOD 2026 · 1 citation
  5. ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic WorkloadsJunfeng Liu, Haoxuan Xie, Siqiang LuoVLDB 2026
Dusk over the sea between two cliffs drawn in fine vertical lines