[Paper Review] PaxosLease: Diskless Paxos for Leases
PaxosLease is a diskless, clock-synchronization-free distributed lease algorithm based on Paxos that enables lease acquisition and renewal without blocking, even under high contention. It ensures lease safety via ballot numbers and acceptor state management, achieving high availability and low latency in replicated key-value stores like Keyspace and ScalienDB.
This paper describes PaxosLease, a distributed algorithm for lease negotiation. PaxosLease is based on Paxos, but does not require disk writes or clock synchrony. PaxosLease is used for master lease negotation in the open-source Keyspace and ScalienDB replicated key-value stores.
Motivation & Objective
- To address the blocking problem in naive majority-based lease protocols under high proposer contention.
- To eliminate reliance on clock synchronization and disk writes, improving practicality and performance.
- To provide a simple, efficient, and safe lease mechanism suitable for production systems like Keyspace and ScalienDB.
- To enable lease extension and early release without modifying acceptor logic, supporting dynamic workloads.
- To offer a minimal, composable solution for managing multiple resources via independent lease instances.
Proposed method
- Uses a two-phase prepare/propose protocol inspired by Paxos, with ballot numbers to order proposals and prevent conflicts.
- Acceptors store only the highest promised ballot number and the last accepted proposal, avoiding persistent state writes.
- Lease holders are determined by a majority of acceptors agreeing on a proposer's proposal, with leases expiring automatically after a timespan T.
- Proposers can extend leases by re-proposing before expiry, and can release leases early via special release messages.
- Lease state is discarded by acceptors upon expiry or explicit release, ensuring safety and liveness.
- Supports multiple resources by tagging messages and state with a resource identifier, enabling per-resource lease management with low memory overhead.
Experimental results
Research questions
- RQ1Can a lease protocol be designed to avoid blocking under high proposer contention without relying on clock synchronization?
- RQ2Is it possible to eliminate disk writes in a lease protocol while still ensuring safety and consistency?
- RQ3How can lease extension and early release be supported efficiently without altering acceptor behavior?
- RQ4Can a Paxos-based protocol be specialized for leases in a way that is simpler and more efficient than existing approaches like Fatlease?
- RQ5What is the memory and performance overhead of supporting multiple independent leases per node?
Key findings
- PaxosLease eliminates blocking in high-contention scenarios by using ballot numbers to allow proposers to override previous proposals, ensuring liveness.
- The algorithm requires no disk writes or clock synchronization, making it suitable for systems where these are performance bottlenecks or impractical.
- Lease extension is supported by allowing proposers to re-proposal before expiry, with no changes to acceptor logic.
- Early lease release is achieved via special release messages that trigger acceptor state discard if the ballot number matches.
- The protocol supports up to ~10 million independent leases per gigabyte of main memory, due to its minimal per-instance state (~100 bytes).
- PaxosLease has been successfully deployed in production systems, including Keyspace and ScalienDB, demonstrating real-world scalability and reliability.
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.