Towards Cost-Effective and Elastic Cloud Database Deployment via Memory Disaggregation
Yingqiang Zhang, Chaoyi Ruan, Cheng Li, Jimmy Yang, Wei Cao, Feifei Li, Bo Wang, Jing Fang, Yuhui Wang, Jingze Huo, Chao Bi
摘要
It is challenging for cloud-native relational databases to meet the ever-increasing needs of scaling compute and memory resources independently and elastically. The recent emergence of memory disaggregation architecture, relying on high-speed RDMA network, offers opportunities to build cost-effective and elastic cloud-native databases. There exist proposals to let unmodified applications run transparently on disaggregated systems. However, running relational database kernel atop such proposals experiences notable performance degradation and time-consuming failure recovery, offsetting the benefits of disaggregation. To address these challenges, in this paper, we propose a novel database architecture called LegoBase, which explores the co-design of database kernel and memory disaggregation. It pushes the memory management back to the database layer for bypassing the Linux I/O stack and re-using or designing (remote) memory access optimizations with an understanding of data access patterns. LegoBase further splits the conventional ARIES fault tolerance protocol to independently handle the local and remote memory failures for fast recovery of compute instances. We implemented LegoBase atop MySQL. We compare LegoBase against MySQL running on a standalone machine and the state-of-the-art disaggregation proposal Infiniswap. Our evaluation shows that even with a large fraction of data placed on the remote memory, LegoBase's system performance in terms of throughput (up to 9.41% drop) and P99 latency (up to 11.58% increase) is comparable to the monolithic MySQL setup, and significantly outperforms (1.99x-2.33x, respectively) the deployment of MySQL over Infiniswap. Meanwhile, LegoBase introduces an up to 3.87x and 5.48x speedup of the recovery and warm-up time, respectively, over the monolithic MySQL and MySQL over Infiniswap, when handling failures or planned re-configurations.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 20 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated Memory 引用了 Understanding the Effect of Data Center Resource Disaggregation on Production DBMSs
- Design Guidelines for Correct, Efficient, and Scalable Synchronization using One-Sided RDMA 引用了 Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated Memory
- Design Guidelines for Correct, Efficient, and Scalable Synchronization using One-Sided RDMA 引用了 The Case for Distributed Shared-Memory Databases with RDMA-Enabled Memory Disaggregation
- The Case for Distributed Shared-Memory Databases with RDMA-Enabled Memory Disaggregation 引用了 Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated Memory
- The Case for Distributed Shared-Memory Databases with RDMA-Enabled Memory Disaggregation 引用了 Understanding the Effect of Data Center Resource Disaggregation on Production DBMSs
- DINOMO: An Elastic, Scalable, High-Performance Key-Value Store for Disaggregated Persistent Memory 引用了 Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated Memory
- DINOMO: An Elastic, Scalable, High-Performance Key-Value Store for Disaggregated Persistent Memory 引用了 Hailstorm: Disaggregated Compute and Storage for Distributed LSM-based Databases
引用它的顶会 Paper20
- Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated MemoryQing Wang, Youyou Lu, Jiwu ShuSIGMOD 2022 · 99 次引用
- The Case for Distributed Shared-Memory Databases with RDMA-Enabled Memory DisaggregationRuihong Wang, Jianguo Wang, Stratos Idreos, M. Tamer Özsu 等VLDB 2023 · 49 次引用
- DINOMO: An Elastic, Scalable, High-Performance Key-Value Store for Disaggregated Persistent MemorySe Kwon Lee, Soujanya Ponnapalli, Sharad Singhal, Marcos K. Aguilera 等VLDB 2022 · 49 次引用
- Disaggregating Stateful Network FunctionsDeepak Bansal, Gerald DeGrace, Rishabh Tewari, Michal Zygmunt 等NSDI 2023 · 33 次引用
- Design Guidelines for Correct, Efficient, and Scalable Synchronization using One-Sided RDMATobias Ziegler, Jacob Nelson-Slivon, Viktor Leis, Carsten BinnigSIGMOD 2023 · 32 次引用
它引用的 Paper4
- Effectively Prefetching Remote Memory with LeapHasan Al Maruf, Mosharaf ChowdhuryUSENIX ATC 2020 · 186 次引用
- POLARDB Meets Computational Storage: Efficiently Support Analytical Workloads in Cloud-Native Relational DatabaseWei Cao, Yang Liu, Zhushi Cheng, Ning Zheng 等FAST 2020 · 140 次引用
- Understanding the Effect of Data Center Resource Disaggregation on Production DBMSsQizhen Zhang, Yifan Cai, Xinyi Chen, Sebastian Angel 等VLDB 2020 · 64 次引用
- Hailstorm: Disaggregated Compute and Storage for Distributed LSM-based DatabasesLaurent Bindschaedler, Ashvin Goel, Willy ZwaenepoelASPLOS 2020 · 51 次引用
相关 Paper
- Persistent Memory Disaggregation for Cloud-Native Relational DatabasesChaoyi Ruan, Yingqiang Zhang, Chao Bi, Xiaosong Ma 等ASPLOS 2023 · 24 次引用
- REMON: Remote External Memory Over the NetworkShiquan Zhang, Michail Bachras, Yuqiu Zhang, Yunhao Mao 等ICDE 2026
- dLSM: An LSM-Based Index for Memory DisaggregationRuihong Wang, Jianguo Wang, Prishita Kadam, M. Tamer Özsu 等ICDE 2023 · 27 次引用
- Scalable Distributed Inverted List Indexes in Disaggregated MemoryManuel Widmoser, Daniel Kocher, Nikolaus AugstenSIGMOD 2024 · 5 次引用
- Wiseswap: Elastic Datacenter Network-Aware Disaggregated Memory for Multi-Tenant CloudMingxuan Liu, Jianhua Gu, Tianhai Zhao, Dong SunWWW 2026
