Skip to main content
QUICK REVIEW

[Paper Review] Keyspace: A Consistently Replicated, Highly-Available Key-Value Store

Márton Trencséni, Attila Gazsó|arXiv (Cornell University)|Sep 18, 2012
Distributed systems and fault toleranceComputer Science4 references5 citations
TL;DR

Keyspace is a distributed, strongly consistent, and highly available key-value store that uses the Paxos consensus algorithm to ensure all nodes maintain identical data states. It achieves fault tolerance and high availability by requiring a majority of nodes to remain online and connected, with optimizations like command packing and commit chaining to improve performance, supporting up to ~100,000 operations per second in practice.

ABSTRACT

This paper describes the design and architecture of Keyspace, a distributed key-value store offering strong consistency, fault-tolerance and high availability. The source code is available under the open-source AGPL license for Linux, Windows and BSD-like platforms. As of 2012, Keyspace is no longer undergoing active development.

Motivation & Objective

  • To design a distributed key-value store that guarantees strong consistency across nodes despite network failures and node crashes.
  • To achieve high availability by ensuring the system remains operational as long as a majority of nodes are functional.
  • To implement fault tolerance against common network issues such as message loss, reordering, and network splits.
  • To minimize client-side complexity by abstracting away distributed system challenges through consistent replication.
  • To optimize performance through techniques like command packing, multipaxos, and commit chaining without sacrificing consistency.

Proposed method

  • Uses the Paxos consensus algorithm to replicate write commands across nodes in the same order, ensuring all nodes maintain identical state.
  • Employs a master-slave replication model where only the master handles safe-read and write operations, ensuring consistency.
  • Implements two catchup mechanisms: short-term lag via log fetching and long-term lag via full database copy from the master.
  • Uses asynchronous I/O with epoll, kqueue, or completion ports to handle high-throughput network operations efficiently.
  • Applies command packing to reduce network roundtrips by batching multiple client operations into a single Paxos round.
  • Uses commit chaining to delay disk synchronization until the next Paxos round, reducing I/O overhead while preserving strong consistency.

Experimental results

Research questions

  • RQ1How can a distributed key-value store maintain strong consistency under real-world network failures such as message loss and network splits?
  • RQ2What system size and configuration maximize liveness probability while ensuring fault tolerance in a distributed key-value store?
  • RQ3How can network and disk I/O overhead be minimized in a strongly consistent distributed system without compromising consistency?
  • RQ4What trade-offs exist between consistency, availability, and performance in a replicated key-value store?
  • RQ5How can nodes that have been down or disconnected catch up to the current state of the system with minimal operator intervention?

Key findings

  • Keyspace guarantees strong consistency by ensuring all write operations are committed on a majority of nodes before returning success.
  • The system maintains liveness with 99.27% probability for a 3-node cluster and 99.88% for a 5-node cluster, assuming 95% node availability.
  • Replicated write throughput levels off at approximately 12 MB/sec due to disk sync latency, with performance dropping for values larger than ~1000 bytes.
  • Single-client read throughput remains unchanged between single-server and replicated setups because the master serves all safe reads without contacting other nodes.
  • Command packing and commit chaining significantly reduce network roundtrips and disk I/O, improving overall throughput and efficiency.
  • The system supports up to ~100,000 operations per second under default configurations, with performance dependent on hardware, cache size, and data access patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.