Simulating Leader Election and Log Replication. Nodes timeout if they don't receive heartbeats, becoming candidates.