Skip to content

PAPER EXPLAINED

Paxos Made Live: An Engineering Perspective

IntermediateAbout 35 min to read the paper

TL;DR

Google's engineers describe building Chubby's replicated database on Paxos. They show that a production system needed many extensions, careful testing and operational safeguards beyond the textbook algorithm, and that it outperformed the commercial database it replaced.

What problem does Paxos Made Live solve?

Chubby, Google's lock and small-file service, relied on a commercial replicated database with a history of replication bugs and no known proof of correctness. The team replaced it with a Paxos-based system. Paxos fits on a page of pseudo-code, but a production version must handle disk corruption, finite resources, changing replica sets, fast reads, evolving requirements and operator mistakes. The literature left many of these details unspecified or unproven, and proof techniques for short algorithms do not scale to thousands of lines of code.

The core idea

Build a reusable fault-tolerant log on Multi-Paxos with a long-lived master. Layer a snapshot-plus-log database on that log, and put Chubby on top. Add targeted extensions where real life breaks Paxos assumptions or Chubby needs more: rebuild corrupted replicas safely, use leases for local reads, use epoch numbers to detect master changes, and use snapshots to bound log growth. Since proofs are impractical at this scale, gain confidence through clean state-machine code, runtime consistency checks and heavy randomized, repeatable failure testing.

IN THE AUTHORS’ WORDS

“While Paxos can be described with a page of pseudo-code, our complete implementation contains several thousand lines of C++ code.”

Paxos Made Live: An Engineering Perspective, p. 1

“By their very nature, fault-tolerant systems try to mask problems.”

Paxos Made Live: An Engineering Perspective, p. 11

“There are significant gaps between the description of the Paxos algorithm and the needs of a real-world system.”

Paxos Made Live: An Engineering Perspective, p. 14

How Paxos Made Live works

  1. Each Chubby replica stacks three layers. At the bottom is a Paxos-based replicated log with a simple submit/callback API. Above it is a database made of a local snapshot plus a replay log. Chubby sits on top. Every replica applies the same agreed sequence of operations.
  2. Multi-Paxos chains instances under a stable coordinator, the master, so propose messages can be skipped. This leaves one disk write per instance on each replica. Values from several threads can be batched into one instance for throughput.
  3. A replica that lost its disk state could break earlier promises. It detects corruption through file checksums and a GFS marker. It then rejoins as a non-voting member, catching up without sending promises or acknowledgments until it has seen one complete new Paxos instance.
  4. Master leases block other replicas from submitting values while the lease holds, so the master can serve reads locally. The master renews its lease with heartbeat values and keeps a shorter timeout than the replicas. It also periodically boosts its sequence number to avoid churn after network blips.
  5. A global epoch number stored in the database changes whenever mastership is lost or regained. Every operation is a MultiOp whose guard checks the epoch, so a request fails if the master changed while it was being handled.
  6. Applications take snapshots on their own schedule. They first get a snapshot handle recording the Paxos instance and membership, then write the snapshot, then report it. Only after that report does the framework truncate the log. Lagging replicas can fetch snapshots and then the remaining log records.
  7. Confidence comes from engineering rather than proofs. The core algorithm is written in a compact state-machine language compiled to C++. Masters trigger periodic cross-replica database checksums. Seeded, single-threaded randomized failure tests run first in safety mode and then in liveness mode.

Results

In full-system Chubby benchmarks on the same five servers, the Paxos-based version beat the 3DB-based version on every write-heavy test. One worker reached 91 vs 75 ops/s (1.2x), 10 workers 490 vs 134 ops/s (3.7x), and 20 workers 640 vs 178 ops/s (3.6x). Byte throughput was 2x to about 4.4x higher. Caveats: multi-worker gains reflect batching, which 3DB might partly match with transactions. The Paxos system ran with a 100MB database versus a small one for 3DB, snapshots caused temporary drops, and the system was not tuned. Over 100+ machine years in production, the authors saw several unexpected failures, including two data-loss incidents from operator error during rollout. They judge this failure rate still too high for Chubby.

Limitations and what came later

  • The authors say the final system rests on an unproven protocol. Extensions like group membership changes with Multi-Paxos lack published correctness proofs, and the membership details are left out of the paper.
  • Performance is measured only against one commercial database on one five-server setup with write-intensive workloads. Batching may explain much of the gap.
  • The file-checksum scheme does not detect files rolled back to an old state; the authors chose not to handle this explicitly.
  • Repeatable testing worked only for the single-threaded log. Chubby and parts of the database and log code became multi-threaded, so the full system cannot be tested repeatably.
  • Fault tolerance can hide bugs and misconfigurations, and the authors say they have no systematic way to find such masked problems.

Why Paxos Made Live matters

The paper documents the distance between a correct consensus algorithm and a dependable production service, and it names concrete mechanisms needed to cover it: leases, epochs, safe recovery from disk loss, and snapshot-log coordination. Its testing and operations lessons, such as repeatable failure injection, checksumming replicas and automating rollouts, apply to any replicated system. It also challenges researchers to build tools and testing practices that make fault-tolerant algorithms easier to implement.

This paper is a rare first-hand account of what happens when a famous consensus algorithm meets production. The authors built the replicated database behind Google's Chubby lock service on top of Paxos. They found that the one-page algorithm grew into thousands of lines of C++ that needed many extensions the literature did not fully spell out: disk-corruption recovery, master leases, epoch numbers, group membership changes and snapshots. It is also candid about engineering practice. It covers a custom state-machine language, runtime checksums across replicas, and repeatable randomized failure-injection tests. It also reports real incidents, including data lost through operator error during a rollback. Readers learn why correct algorithms are not the same as correct systems, and where theory left gaps that practitioners had to fill.

Before you read

Who it’s for

Engineers building or operating replicated or distributed systems, students who have learned Paxos or Raft and want to see the practical gaps, and researchers interested in how theory and practice differ in fault-tolerant computing.

What to know first

  • Basic idea of replication and why it gives fault tolerance
  • Familiarity with consensus and majorities (quorums)
  • Rough understanding of logs, snapshots and crash recovery
  • Comfort with concepts like threads, disk flushes and checksums
  • Helpful but optional: having read a Paxos description such as Paxos Made Simple

Glossary

Paxos
A consensus algorithm that lets a set of replicas agree on one value despite crashes, recoveries and lost messages, as long as a majority eventually runs long enough.
Multi-Paxos
Running Paxos repeatedly to agree on a sequence of values, such as log entries. With a stable coordinator, propose messages can be skipped between instances.
Master
The coordinator that Multi-Paxos tries to keep in place for long periods. In Chubby it also serves all client requests.
Master lease
A time-limited guarantee that no other replica can get values accepted. It lets the master answer reads from its local copy.
Epoch number
A database entry that stays the same only while one replica remains master continuously. Operations check it so they fail if mastership changed during handling.
Snapshot handle
Framework-provided Paxos state, including the instance number and group membership, that is stored with an application snapshot so the snapshot and log can be kept consistent.
MultiOp
An atomic database primitive made of guard tests plus two operation lists. One list (t_op) runs if all tests pass and the other (f_op) runs otherwise.
Catch-up
The mechanism a lagging replica uses to get missed log records, or a snapshot plus later records, from leading replicas.
Non-voting member
A recovering replica with a corrupted disk that follows Paxos through catch-up but sends no promise or acknowledgment messages until it is safe to vote.
Safety and liveness modes
Test modes. Safety mode checks only consistency. Liveness mode also requires that the system keeps making progress after failures stop.

What to pay attention to

  • How Multi-Paxos with a stable master cuts disk writes per instance from five to one (p5)
  • Why a replica with a lost disk must sit out as a non-voting member until it sees one full new Paxos instance (p6)
  • How master leases let reads be served locally, and the sequence-number 'boosting' trick that prevents master churn (p6-7)
  • The snapshot handle and the three-phase snapshot procedure that keeps log and snapshot consistent (p8)
  • MultiOp's guard / t_op / f_op structure and how it later absorbed the epoch-number requirement (p9)
  • The safety-mode then liveness-mode testing approach and why single-threaded repeatability mattered (p11)
  • The misconfigured-replica story showing how fault tolerance can hide bugs (p11-12)
  • The measurement caveats: write-heavy workload, full-system throughput, and batching effects (p13-14)

You can skip it if… Skip if you need a formal proof or a precise protocol specification of Paxos or its extensions. The paper deliberately stays informal and leaves details such as group membership out of scope. Also skip if you only want benchmark-heavy performance analysis.

Questions to keep in mind

  • Why does losing a disk break a core Paxos assumption, and how does waiting for one extra instance fix it?
  • What exactly does a master lease guarantee, and why must the master's lease timeout be shorter than the replicas'?
  • Why did the authors push snapshot-taking responsibility to the application instead of the Paxos framework?
  • How did designing the log without its own threads make testing easier, and why was that goal later partly abandoned?
  • Which of the reported production failures were algorithmic, and which came from operations or the environment?

Paxos Made Live quiz: check your understanding

1. In Multi-Paxos as described in the paper, what optimization allows the system to skip propose messages?

Show the answer

If the coordinator identity does not change between instances, propose messages can be omitted. The system therefore tries to keep one long-lived coordinator, called the master. With this, each replica needs only a single disk write per Paxos instance instead of five on the critical path.

2. How does the system detect a replica whose disk has been wiped, as opposed to a brand-new replica?

Show the answer

A new replica leaves a marker in GFS after start-up. If that replica later starts again with an empty disk, it finds the GFS marker and knows its disk was corrupted. Changed file contents are detected separately with checksums stored in each file.

3. What does a master lease guarantee, and what does it enable?

Show the answer

While the master holds the lease, other replicas cannot successfully submit values to Paxos. So the master's local data is up to date and it can serve reads locally, without running a Paxos instance for each read.

4. What is MultiOp?

Show the answer

MultiOp is an atomic database primitive with three parts. The guard is a list of tests on database entries. If all tests pass, the t_op list of operations runs; otherwise the f_op list runs. All database operations except iteration are implemented as a single MultiOp call.

5. What are safety mode and liveness mode in the paper's tests?

Show the answer

Safety mode checks that the system stays consistent but does not require progress. Liveness mode requires both consistency and progress. Tests inject random failures in safety mode, then stop injecting failures, let the system recover, and switch to liveness mode to confirm it does not deadlock.

6. How did a misspelled replica name show the danger of fault tolerance masking problems?

Show the answer

In a five-replica cell, one replica's name was misspelled. The four correct replicas kept making progress, and the fifth ran in catch-up mode, so everything looked fine. In reality, the cell could tolerate only one faulty replica instead of two.

7. Why were the benchmark workloads write-intensive even though reads dominate Chubby traffic?

Show the answer

Reads are handled entirely on the master, which usually holds a lease, so they do not exercise the Paxos algorithm. Write-heavy tests were needed to measure the Paxos-based database.

Your answers stay on this page and are cleared when you leave.

Go a little deeper

The authors argue that fault-tolerant computing lacks the tools that compiler construction developed, such as parser generators. What would an equivalent toolkit for consensus systems need to include to close the gaps they describe in membership, snapshots, leases and testing?

Read next

More papers on Consensus.

Related reading lists

All papers explained →

Cite Paxos Made Live

Chandra, T. D., Griesemer, R., & Redstone, J. (2007). Paxos Made Live: An Engineering Perspective. ACM PODC. https://doi.org/10.1145/1281100.1281103

@inproceedings{chandra2007paxos,
  title = {{Paxos Made Live: An Engineering Perspective}},
  author = {Tushar D. Chandra and Robert Griesemer and Joshua Redstone},
  year = {2007},
  booktitle = {ACM PODC},
  doi = {10.1145/1281100.1281103},
  url = {https://static.googleusercontent.com/media/research.google.com/en/us/archive/paxos_made_live.pdf}
}

DOI: 10.1145/1281100.1281103 · Original PDF ↗

Study Paxos Made Live in ReadingTrack

Add the paper to your ReadingTrack library with its authors, venue and year, and get this page’s quiz as suggested review cards. You choose which cards to keep; nothing enters your reviews until you accept it.

Last reviewed 26 November 2026 by the ReadingTrack editors. Explanations are our own; quotes are short and attributed, and the paper is linked at its original source.