Everything, Everywhere
Verified Specification | Standardized Formulas | Instant Precision
Secure & Private (Zero Data Retention) Free Access • No Sign-Up

Distributed Consensus & State Machine Replication Workbench

Explore Multi-Paxos, Viewstamped Replication, and Raft invariants: step through proposal commits, simulate leader failure & split-brain partition, and model Joint Consensus membership reconfigurations.

Term 1
Current Term / Ballot
Node 1
Elected Leader / Primary
Index 3
Quorum Commit Index
3 of 5
Majority Quorum Threshold
C_old (Standard)
Membership Configuration

Cluster Node Replicas & Log State

Green = Committed in Quorum | Amber = Replicating in Transit

Quorum Intersection & Fault Tolerance Theorem

Safety Axiom: Any two majorities Q1 and Q2 intersect by at least one live replica:

|Q| = ⌊N / 2⌋ + 1 = ⌊5 / 2⌋ + 1 = 3 nodes
Max Tolerable Crash Faults (f): f = ⌊(N - 1) / 2⌋ = 2 nodes

With 5 nodes, the cluster withstands 2 simultaneous node crashes or partitions. A minority partition of 2 nodes CANNOT elect a leader or commit entries.

[System] Consensus cluster initialized with 5 nodes in Term 1. Node 1 is leader.

Production Consensus State Machine Code


    
Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement