raft-partition-via-set

Status: IN

Network partitions are simulated by adding node IDs to `_partitioned`; partitioned nodes neither tick nor send/receive messages, modeling complete network isolation.

Source: entries/2026/05/29/raft-consensus-raft.md

Example

self._partitioned = set()
# ...
if sender in self._partitioned or receiver in self._partitioned:
    continue  # drop message

JSON