使用RDMA在LSM键值存储中进行高效索引复制
Using RDMA for Efficient Index Replication in LSM Key-Value Stores
摘要:
日志结构化合并树(LSM树)键值(KV)存储已成为数据中心和云服务存储堆栈中的基础层。用于实现可靠性和可用性的当前方法避免了在KV存储级别的复制,而是在更高层执行这些操作,例如,运行在KV存储之上的DB层。主要原因是,过去的设计复制KV存储有利于减少网络流量和增加I/O大小。因此,它们执行昂贵的压缩来重新组织主节点和备份节点中的数据,这会损害整体系统性能。在本文中,我们设计和实现Talos,一个有效的机架规模的基于LSM的KV存储,旨在显着减少备份节点中的I/O放大和CPU开销,并使复制KV存储实用。我们依赖于两个观察结果:(a)在数据中心中增加使用RDMA,这减少了用于通信的CPU开销,以及(b)使用在现代KV存储中变得普遍的KV分离。我们使用主备份复制方案,只在主节点上执行压缩,并将预先构建的索引发送到区域的备份节点,避免备份中的所有压缩。我们的方法包括一个有效的机制来处理区域索引中的节点之间的指针翻译。我们的研究结果表明,Talos减少了备份节点,I/O放大高达$3\times$,CPU开销高达$1.6\times$,和存储器大小所需的写入路径高达$2\times$,而不增加网络带宽过度,并高达$1.3\times$。总的来说,我们表明,即使小KV对在工作负载中占主导地位(80%-90%),我们的方法也有好处。最后,它使KV存储能够以更大的增长因子(从10到16)运行,以减少空间放大,而不会牺牲宝贵的CPU周期。
英文摘要:
Log-Structured Merge tree (LSM tree) Key-Value (KV) stores have become a foundational layer in the storage stacks of datacenter and cloud services. Current approaches for achieving reliability and availability avoid replication at the KV store level and instead perform these operations at higher layers, e.g., the DB layer that runs on top of the KV store. The main reason is that past designs for replicated KV stores favor reducing network traffic and increasing I/O size. Therefore, they perform costly compactions to reorganize data in both the primary and backup nodes, which hurts overall system performance. In this paper, we design and implement Talos, an efficient rack-scale LSM-based KV store that aims to significantly reduce the I/O amplification and CPU overhead in backup nodes and make replication in the KV store practical. We rely on two observations: (a) the increased use of RDMA in the datacenter, which reduces CPU overhead for communication, and (b) the use of KV separation that is becoming prevalent in modern KV stores. We use a primary-backup replication scheme that performs compactions only on the primary nodes and sends the pre-built index to the backup nodes of the region, avoiding all compactions in backups. Our approach includes an efficient mechanism to deal with pointer translation across nodes in the region index. Our results show that Talos reduces in the backup nodes, I/O amplification by up to $3\times$, CPU overhead by up to $1.6\times$, and memory size needed for the write path by up to $2\times$, without increasing network bandwidth excessively, and by up to $1.3\times$. Overall, we show that our approach has benefits even when small KV pairs dominate in a workload (80%-90%). Finally, it enables KV stores to operate with larger growth factors (from 10 to 16) to reduce space amplification without sacrificing precious CPU cycles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。