从 FASTER 到 F2:面向大规模偏斜工作负载的并发键值存储设计演进
From FASTER to F2: Evolving Concurrent Key-Value Store Designs for Large Skewed Workloads
AI总结:
本文提出 F2(FASTER v2),一种面向大规模偏斜工作负载的并发键值存储设计,通过两层记录设计、无锁压缩算法、两级哈希索引和读缓存,实现 2-11.9 倍吞吐量提升。
摘要:
现代大规模服务(如搜索引擎、消息平台和无服务器函数)依赖键值(KV)存储来维持大规模下的高性能。当此类服务部署在内存受限的环境中时,它们提出了具有挑战性的需求:需要高吞吐量的点操作、远大于主内存的工作集,以及键访问模式中的自然偏斜。基于 LSM 树和 B 树的传统 KV 存储已被广泛用于处理此类用例,但它们往往无法充分利用现代硬件资源。FASTER 项目作为高性能开源 KV 存储库开发,在内存和混合存储环境中均取得了显著成功。然而,当用于服务大规模偏斜工作负载时,它面临挑战,包括高索引和压缩开销,以及对非重叠的读热和写热工作集管理效率低下。\n 在本文中,我们介绍了 F2(即 FASTER v2),它是 FASTER 的演进版本,旨在满足工业应用中常见的大规模偏斜工作负载的需求。F2 采用两层面向记录的设计来处理大于内存的偏斜工作负载,并采用新的无锁并发机制和组件以在现代硬件上最大化性能。为实现这一设计,F2 解决了关键挑战并引入了多项创新,包括用于多线程日志压缩的新无锁算法、用于降低冷记录索引开销的两级哈希索引,以及用于服务读热记录的读缓存。我们的评估表明,与现有 KV 存储相比,F2 实现了 2-11.9 倍的吞吐量提升,有效服务了目标工作负载。F2 是开源的,并作为 FASTER 项目的一部分提供。
英文摘要:
Modern large-scale services such as search engines, messaging platforms, and serverless functions, rely on key-value (KV) stores to maintain high performance at scale. When such services are deployed in constrained memory environments, they present challenging requirements: point operations requiring high throughput, working sets much larger than main memory, and natural skew in key access patterns. Traditional KV stores, based on LSM- and B-Trees, have been widely used to handle such use cases, but they often suffer from suboptimal use of modern hardware resources. The FASTER project, developed as a high-performance open-source KV storage library, has demonstrated remarkable success in both in-memory and hybrid storage environments. However, when tasked with serving large skewed workloads, it faced challenges, including high indexing and compactions overheads, and inefficient management of non-overlapping read-hot and write-hot working sets. In this paper, we introduce F2 (for FASTER v2), an evolution of FASTER designed to meet the requirements of large skewed workloads common in industry applications. F2 adopts a two-tier record-oriented design to handle larger-than-memory skewed workloads, along with new concurrent latch-free mechanisms and components to maximize performance on modern hardware. To realize this design, F2 tackles key challenges and introduces several innovations, including new latch-free algorithms for multi-threaded log compaction, a two-level hash index to reduce indexing overhead for cold records, and a read-cache for serving read-hot records. Our evaluation shows that F2 achieves 2-11.9x better throughput compared to existing KV stores, effectively serving the target workload. F2 is open-source and available as part of the FASTER project.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。