Nemo:面向分离式OLTP数据库的带索引下推的高效缓存
Nemo: Efficient Caching with Index Pushdown for Disaggregated OLTP Databases
AI总结:
Nemo是面向分离式OLTP数据库的带索引下推的高效缓存设计,通过树结构记录缓冲、负搜索结果缓存及鲁棒幻读保护,在点查询、负搜索和幻读保护性能上均显著优于现有方案。
摘要:
存储分离式数据库将计算与存储解耦,提升了弹性,但存在网络瓶颈问题。多数云数据库采用基于页的B+树和缓冲池,在分离式架构下,每次索引遍历都会产生串行网络往返,页粒度的传输与缓存还会放大网络流量、降低缓存效率。将完整索引下推至存储端,仅在计算端缓存热记录是一种有吸引力的方案,但高效设计需满足三个要求:一是提供能加速点查询和范围查询的整体式记录缓存;二是缓解通过远程探测确认不存在的负搜索惩罚;三是在索引被存储服务封装的情况下实现幻读保护。本文提出Nemo,一种针对带索引下推的存储分离式OLTP优化的整体式索引与缓冲设计。Nemo采用树结构的记录缓冲,统一了缓存与缓冲功能,可加速点查询和范围查询;还通过缓存负搜索结果降低负搜索惩罚;其提供的幻读保护无需知晓存储端数据布局,对大键域、可变数据倾斜和分区方案均具有鲁棒性。实验表明,在正点查询上,Nemo的性能比基于页的B+树和最先进的2-Tree分别高出最多11.42倍和2.97倍;在负搜索上,比基于哈希索引的记录缓存实现了最多4.76倍的加速;在幻读保护方面,即使在密集键域下,Nemo的性能也比PCL高出最多1.55倍,且随着键域变得大而稀疏,PCL性能急剧下降,而Nemo保持稳定性能。
英文摘要:
Storage-disaggregated databases decouple compute from storage, improving elasticity but suffering from network bottlenecks. Most cloud databases use page-based B+trees and buffer pools. Under disaggregation, each index traversal incurs serial network round-trips. Page-granularity transfers and caching also amplify network traffic and lower cache efficiency. Pushing down the full index to storage and caching only hot records at compute is appealing, but an efficient design must (1) provide a holistic record cache that accelerates both point and range queries, (2) mitigate the negative search penalty of confirming non-existence via remote probes, and (3) enforce phantom protection despite the index being encapsulated by the storage service. We introduce Nemo, a holistic index-and-buffer design optimized for storage-disaggregated OLTP with index pushdown. Nemo employs a tree-structured record buffer that unifies caching and buffering and accelerates both point and range queries. It further reduces the negative search penalty by caching negative search results. Nemo provides phantom protection that requires no knowledge of the storage-side data layout and is robust against large key domains, varying data skew, and partition schemes. Experiments show that Nemo outperforms page-based B+Tree and the state-of-the-art 2-Tree by up to 11.42x and 2.97x on positive point queries, and achieves up to 4.76x speedup on negative searches over a hash-indexed record cache. For phantom protection, Nemo outperforms PCL by up to 1.55x even under a dense key domain. Moreover, Nemo maintains stable performance while PCL degrades sharply as the key domain grows large and sparse.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。