Five machines keep the same list of changes, with no shared clock and no boss.
They run Raft: one machine is elected leader, it sends a heartbeat to
everyone else, and a change only counts as agreed once a majority — 3 of the 5 —
have written it down. Pause the leader and watch the rest notice the silence, hold a
vote, and carry on without losing a thing.
LEADER node 1term 3agreed entries 3running 5/5majority 3clock 0.0sintro playing — touch any control to take over
introStarting up…
agreed by a majoritywritten down, not yet agreeddisagrees with the leaderheartbeatcarrying entriesasking for a voteentries 1–8