[Verse 1] In KRaft's kingdom three controllers wait One will lead while two remain in standby state Through Raft consensus they must all decide Who holds the scepter, who steps aside Terms increment when elections start anew Votes cast in secret, majority rules true [Chorus] Quorum Controller, one leader chosen Epochs keep order, prevents what's broken Terms and votes and majorities reign Fencing the past when new power's gained Controller dot quorum dot voters define Which nodes can rule this distributed shrine [Verse 2] Configuration lists the voting members Only these nodes the cluster remembers Active controller handles all the writes Standby followers wait for leadership rights When network splits or leaders disappear Raft algorithm makes the choice crystal clear [Chorus] Quorum Controller, one leader chosen Epochs keep order, prevents what's broken Terms and votes and majorities reign Fencing the past when new power's gained Controller dot quorum dot voters define Which nodes can rule this distributed shrine [Bridge] Epoch numbers climbing ever higher Each new leader gets a fresh identifier Stale commands from previous regimes Rejected swiftly, protecting our schemes No dual control, no conflicting commands One active ruler, that's how KRaft stands [Verse 3] Heartbeats pulse between the chosen three Leader announces "I'm authority" Followers acknowledge, reset their clocks Fencing ensures that old leadership stops Metadata flows through this careful dance No split-brain chaos, no risky chance [Chorus] Quorum Controller, one leader chosen Epochs keep order, prevents what's broken Terms and votes and majorities reign Fencing the past when new power's gained Controller dot quorum dot voters define Which nodes can rule this distributed shrine [Outro] Three nodes voting, one takes the crown Raft keeps us safe when systems break down Epochs ascending, order maintained KRaft's quorum wisdom, perfectly ordained
← 2 The Metadata Log (`__cluster_metadata` topic) | 4 Broker Lifecycle in KRaft →