Log inStart free
LESSON 33.15 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Failover and redundancy

Watch node N2 crash and its sessions move to a backup.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 33.15 · SESSION STOREN2: S07–S12 · HOT SPARE · A 99.99%
01
Stage 1 of 5 · Redundancy
Redundancy keeps a second copy. The hot spare N5 holds a live copy of N2's sessions.
Explain it simply

Each row is one node, and each chip is a chat session it serves. Redundancy means you keep more than you need, so one failure does not stop the service. With two copies, each up 99 percent of the time, both are down only 1 time in 10,000.

Five rows for nodes N1 to N5. N2 holds sessions S07 to S12. The backup is N5, with a live copy. Requests flow in until 15.4 seconds.

session; dot: a request answerednode, monitor, warm-up; dashed line: capacitycrash, outage, failed request, over capacity; dashed: a dead nodebackup that takes overdashed: a copy, a spare that is off or unused, a missed heartbeatgrey band: N2 restarting
0102030405060 sN1N2N3N4N5hot spareMonitorN2's heartbeatsS01S02S03S04S05S06S07S08S09S10S11S12S13S14S15S16S17S18S19S20S21S22S23S24S07S08S09S10S11S12Nodes0102030405060 sN1N2N3N4N5hot spareMonitorN2's heartbeatsS01S02S03S04S05S06S07S08S09S10S11S12S13S14S15S16S17S18S19S20S21S22S23S24S07S08S09S10S11S12Nodes
Toy: 24 sessions on N1–N4, one minute, N2 fails
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A=1−(1−a)c\sy{A}{out}{A} = 1 - (1 - \sy{a}{param}{a})^{\sy{c}{param}{c}}
A=1−(1−0.99)2=0.9999A = 1 - (1 - 0.99)^{2} = 0.9999

The service fails only when every copy is down at once.

Common mix-ups

MYTHWith a hot spare, no request fails.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With a cold spare and 3 missed heartbeats, how long do N2's sessions get no answer?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.