paros ~
GitHub →
Paxos

Matchmaker Paxos

Change the acceptors of a journal while it takes writes. A reconfiguration is only a new ballot with a new configuration.

The problem

Machines fail and get replaced, and a tenant can ask for more durability. The acceptors of a journal must change while writes go on, with no stop and no external configuration store.

Step through

Matchmakers (mm) keep, for each ballot, the acceptors that the ballot uses. A leader registers its configuration with the matchmakers (MatchRequest) before its Phase 1. The answer names the configurations of the lower ballots. A GcRequest lets the matchmakers forget the configurations that no longer hold a chosen slot.

The step-through diagram needs JavaScript.

Your turn

Now you are the network. Deliver or drop each message, and reach the goal. paros-consensus runs in this page and decides everything else.

The exercises need JavaScript.

The rule

Phase 1 asks a quorum of every configuration that the matchmakers report for a lower ballot, and Phase 2 writes only to the new one. So Phase 1 finds any value that an old configuration chose, and writes do not stop during the change.

In paros

  • paros-consensus: Matchmaker (matchmaker/) and the matchmaking phase (matchmaking/).
  • The matchmaker set itself is chosen by single-decree Paxos, and moves to a new set by a generation handover.
  • A removed acceptor is not shut down at once. It retires only when the GC floor is effective and every matchmaker of the set says that no registration above the floor names it (ColocatedNode::may_retire). Until then, a later Phase 1 may need its promise. Each matchmaker that agrees records the node as retired, durably, and refuses every later registration that names it (MatchRefusal::Retired). A handover carries these records to the successor set. When placement books the node on that journal again, the node first rejoins: at a new incarnation, it asks every matchmaker to drop its record.
  • Consensus: the deployments show how a node and its matchmakers are driven together.