LightMySky

Quorums, Leases and Changing the Membership

A majority is one point on a curve: any read set and write set that intersect will do, and the choice moves cost between reads and writes. A lease buys a leader a bounded window of authority, and changing the member set safely needs a protocol of its own.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Choose read and write quorum sizes for a stated read-heavy workload and justify them
  • Say what a lease assumes about clocks and what breaks when that assumption fails
  • Explain why adding and removing members in one step can split a cluster

1 · Read

A majority is one point on a curve. Any read set and write set that intersect will do, and the choice moves cost between reads and writes. For five nodes with a read quorum of 2, the write quorum must exceed 3, so 4 is the smallest that still overlaps every read.

Try it together

A read-heavy shop picks read quorum 2 and write quorum 4 on five nodes. Every 2-node read meets every 4-node write in at least one node, so reads stay cheap while writes pay the price. Check the maths the same way every time: read plus write must exceed the node count.

A lease buys the leader a bounded window of authority without asking anyone, which quorums alone cannot give. It assumes clocks stay roughly in sync. When clocks skew, two leaders can believe themselves in charge at once.

Good to know

Never add and remove members in one step. Old and new majorities can then disagree and elect rival leaders, so change the set in careful stages.

Intersecting quorums trade read cost for write cost, leases rent authority on clock trust, and membership changes go stepwise.

2 · Watch

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Then practise

8 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Quorums, Leases and Changing the Membership · Computing, ages 22 to 23 · LightMySky