FUSEE: A Fully Memory-Disaggregated Key-Value Store

Jiacheng Shen, Pengfei Zuo, Xuchuan Luo, Tianyi Yang, Yuxin Su, Yangfan Zhou, Michael R. LyuFAST 2023

TL;DR

This paper introduces FUSEE, a novel fully memory-disaggregated key-value (KV) store that extends disaggregation to metadata management. By eliminating monolithic metadata servers and enabling clients to manage metadata directly, FUSEE achieves significantly higher resource efficiency and performance, outperforming existing solutions by up to 4.5x.

What Problem Does This Paper Address?

Traditional distributed in-memory KV stores are increasingly adopting the disaggregated memory (DM) architecture to improve resource utilization. DM decouples compute and memory resources, allowing for independent scaling and pooling. However, existing "semi-disaggregated" KV stores, while storing data on disaggregated memory, still rely on monolithic metadata servers for managing indexes and memory information. This creates a bottleneck, as these metadata servers require dedicated resources and can become a performance limitation, preventing full resource utilization of the DM architecture. The challenge is to disaggregate metadata management itself, enabling clients to directly manage metadata on memory nodes without sacrificing consistency or performance, especially in the face of failures.

Methods

FUSEE tackles the challenges of fully disaggregated metadata management with several key innovations:

  • Client-Centric Replication Protocol (SNAPSHOT): To ensure strong consistency of the replicated index without relying on server-side CPUs, FUSEE introduces SNAPSHOT. This protocol allows clients to collaboratively resolve write conflicts using a set of rules, avoiding expensive serialization and enabling scalability. It splits replicas into a primary and backups, ensuring readers always access a consistent view.
  • Two-Level Memory Management: To handle the compute-intensive task of memory allocation for KV pairs on memory nodes with limited compute power, FUSEE employs a two-level scheme. Coarse-grained memory block allocation is handled by memory nodes, while fine-grained object allocation for KV pairs is managed by clients.
  • Embedded Operation Log: To address metadata corruption caused by client failures, FUSEE embeds operation logs directly within KV pairs. This reduces the overhead of log maintenance by eliminating extra network round trips, while still allowing for recovery of partially executed operations.
  • RACE Hashing: A one-sided RDMA-friendly hashing scheme is used for indexing KV pairs, designed to work efficiently with the disaggregated memory architecture.

Datasets

The paper does not mention specific datasets used for training. For evaluation, they utilize:

  • Microbenchmarks: Custom benchmarks to evaluate operation throughput and latency for INSERT, UPDATE, DELETE, and SEARCH operations.
  • YCSB (Yahoo! Cloud Serving Benchmark): A standard benchmark for evaluating KV stores, used with various workloads (A, C, D) and configurations to assess scalability and performance under different conditions.

Key Insights and Ideas

  • Metadata Disaggregation is Key to Full DM Efficiency: The core insight is that simply disaggregating data isn't enough. True efficiency in DM architectures comes from disaggregating metadata management, allowing clients to directly interact with and manage metadata on memory nodes.
  • Client Collaboration for Consistency: The SNAPSHOT protocol demonstrates that clients can effectively collaborate to maintain strong consistency, bypassing the need for centralized, performance-limiting metadata servers. This shifts the burden of consistency management to the clients in a scalable way.
  • Two-Level Management for Resource Optimization: Splitting memory management tasks between compute-light (memory nodes) and compute-heavy (clients) is crucial for handling the diverse demands of DM environments efficiently.
  • Embedded Logging for Efficient Fault Tolerance: Integrating logs directly into data structures (KV pairs) is a clever way to reduce overhead for fault tolerance mechanisms in high-performance distributed systems.

Key Results

  • Performance Improvement: FUSEE outperforms state-of-the-art KV stores on DM (Clover, pDPM-Direct) by up to 4.5 times in overall throughput.
  • Resource Efficiency: FUSEE achieves this performance with less resource consumption compared to existing solutions.
  • Scalability: FUSEE demonstrates excellent scalability with an increasing number of clients, showing significantly higher throughput than Clover and pDPM-Direct. For example, with 128 clients, FUSEE's throughput was 4.9x higher than Clover and 117x higher than pDPM-Direct.
  • Latency: FUSEE generally shows competitive or superior latency for INSERT and UPDATE operations due to its bounded RTTs. SEARCH and DELETE latencies are also competitive.
  • Fault Tolerance: FUSEE guarantees linearizable operations under client crashes and at most r-1 MN crashes (where r is the replication factor). Client recovery time is also shown to be efficient.

Limitations and Future Work

  • Master's Role in Failures: While FUSEE aims for full disaggregation, a master process is still involved in coordinating recovery from MN failures. The paper mentions that this role is limited and aims to minimize its impact.
  • RDMA-based Systems: The current implementation and evaluation are heavily reliant on RDMA. Extending FUSEE to other network interconnects could be a future direction.
  • SmartNICs: The authors note that FUSEE could benefit from offloading memory management to SmartNICs, suggesting this as a potential area for future work.
  • Formal Verification: While FUSEE is formally verified for safety and absence of deadlocks under MN failures using TLA+, further formal analysis of other aspects could be explored.

Summary updated

BibTeX
@inproceedings{shen2023fusee,
  author = {Jiacheng Shen and Pengfei Zuo and Xuchuan Luo and Tianyi Yang and Yuxin Su and Yangfan Zhou and Michael R. Lyu},
  title = {{FUSEE: A Fully Memory-Disaggregated Key-Value Store}},
  booktitle = {FAST},
  year = {2023},
  url = {https://openreview.net/forum?id=JAUFBpl1t7},
}
Figure