[Paper Review] Bizur: A Key-value Consensus Algorithm for Scalable File-systems
Bizur is a key-value consensus algorithm designed for scalable distributed file-systems, enabling high IOPS and low latency by eliminating distributed log dependencies. Unlike Paxos, Zab, or Raft, Bizur achieves consensus independently per key, avoiding false and real dependencies, which results in superior performance and fault tolerance during failures.
Bizur is a consensus algorithm exposing a key-value interface. It is used by a distributed file-system that scales to 100s of servers, delivering millions of IOPS, both data and metadata, with consistent low-latency. Bizur is aimed for services that require strongly consistent state, but do not require a distributed log; for example, a distributed lock manager or a distributed service locator. By avoiding a distributed log scheme, Bizur outperforms distributed log based consensus algorithms, producing more IOPS and guaranteeing lower latencies during normal operation and especially during failures. Paxos-like algorithms (e.g., Zab and Raft) which are used by existing distributed file-systems, can have artificial contention points due to their dependence on a distributed log. The distributed log is needed when replicating a general service, but when the desired service is key-value based, the contention points created by the distributed log can be avoided. Bizur does exactly that, by reaching consensus independently on independent keys. This independence allows Bizur to handle failures more efficiently and to scale much better than other consensus algorithms, allowing the file-system that utilizes Bizur to scale with it.
Motivation & Objective
- Address the scalability and latency limitations of Paxos-like consensus algorithms in large-scale distributed file-systems.
- Overcome performance bottlenecks caused by distributed log dependencies in systems requiring strong consistency.
- Enable high-concurrency metadata operations in file-systems with dynamic, fine-grained metadata ownership across hundreds of servers.
- Support both in-memory and persisted key-value services with strong consistency and low-latency recovery.
- Design a consensus mechanism tailored for key-value workloads, avoiding the overhead of a general-purpose distributed log.
Proposed method
- Expose a key-value API where each key is independently consensus-protected, eliminating dependencies between keys.
- Decouple consensus from a global log by allowing independent agreement on individual key-value pairs.
- Use a leader-based protocol with quorum-based voting to ensure strong consistency per key.
- Support conditional writes and atomic updates per key, enabling safe coordination for distributed services.
- Integrate with in-memory and persistent storage layers, allowing fast in-memory operations and crash recovery via durable logs.
- Design fault-tolerant recovery by allowing servers to rejoin and reconstruct state without replaying a monolithic log.
Experimental results
Research questions
- RQ1Can a consensus algorithm be designed that avoids the performance bottlenecks of distributed logs in key-value workloads?
- RQ2How does independent consensus per key impact scalability and latency under normal operation and during failures?
- RQ3To what extent can a key-value consensus model outperform log-based consensus in metadata-intensive file-systems?
- RQ4Can strong consistency be maintained without a global log while supporting high concurrency and low-latency operations?
- RQ5How does the algorithm perform under network partitions, packet loss, and server failures compared to established systems like ZooKeeper and etcd?
Key findings
- Bizur outperforms ZooKeeper and etcd in throughput, average latency, and 99th percentile latency under normal operation.
- During network packet drops, Bizur maintains significantly lower latency than log-based systems due to reduced dependency chains.
- During server failures, Bizur achieves faster recovery and lower latency degradation because it avoids replaying a monolithic distributed log.
- The algorithm scales linearly with the number of keys and supports high-concurrency metadata operations in large-scale file-systems.
- The in-memory version of Bizur (used in the ORC service) achieves sub-millisecond latencies, demonstrating its performance advantage over disk-backed alternatives.
- Bizur’s design eliminates false dependencies between operations, preventing a single slow operation from blocking subsequent ones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.