LightMySky
En anglais

Failure Models and Replication

A distributed system has to say what kinds of failure it tolerates: a machine that stops, a message that never arrives, a machine that stops and comes back with old state. Replication is the usual answer, and it turns one copy's truth into a question about which copy to believe.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Explain why a crashed node and a slow one look the same from outside, and why that is hard to resolve
  • Explain what a primary and its replicas each promise a client
  • Say what a replica that rejoins with stale state has to do before serving reads

1 · Read

You already know messages carry order between machines. Now ask what can go wrong. A machine can stop dead, a message can vanish, or a stopped machine can return later still believing old state. First you must name which failure you tolerate.

Try it together

You call a node and hear nothing. It may have crashed, or it may just be slow. From outside both look identical: silence. Systems set a timeout so they can act after a wait, but a timeout still cannot tell the two apart for sure.

Replication is the usual answer: keep copies on several machines. The primary takes writes and promises one order, while replicas copy it and promise to serve only what they have caught up with. One copy's truth becomes a question about which copy to believe.

A replica that rejoins with stale state must catch up before serving reads. It copies the changes it missed first, and only then answers clients. Otherwise it hands out yesterday's truth.

primary orders w1 w2 w3replica holds w1 w2serves only w1 w2copies w3, then serves it
A replica serves only what it has copied, in the primary's order, then catches up.

Name the failures you tolerate, remember silence hides crash and slowness alike, and never let a stale replica answer.

Original instructional content authored for os-taxonomy.

2 · Watch

En anglais

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
Failure Models and Replication · Computing, ages 20 to 21 · LightMySky