Gossip Protocol — concept page. Epidemic dissemination with push/pull/push-pull, periodic random peer selection, O(log N) convergence, SWIM failure detection (suspect -> confirmed via ping/ping-req), delta-based bandwidth control. Used in Cassandra, Consul, Serf, Riak, Akka.
Gossip spreads information through repeated peer exchanges. Anti-entropy repeatedly compares state; rumor mongering forwards a fresh rumor for a bounded or probabilistic lifetime. Coverage depends on fanout, rounds, loss, churn, and repair policy, so “all nodes know after k rounds” is not a deterministic guarantee.
SWIM separates failure detection from dissemination. It tries direct ping, then indirect probes, and marks a member suspected before dead. Incarnation numbers let a live member refute stale suspicion. This is weakly consistent membership, not consensus or a linearizable registry.
rumor-spread): Sampled peers receive a rumor; coverage grows probabilistically.direct-probe): A matching direct acknowledgement completes one probe period.indirect-probe): A direct timeout triggers helper probes before suspicion.suspicion-refute): A live suspected node raises incarnation to supersede suspicion.partition-divergence): Both sides keep local views; gossip cannot choose an authoritative side.rumor-loss-repair): A cold rumor can miss Delta; periodic anti-entropy repairs it.anti-entropy): Version comparison repairs state but still needs semantic merge.restart-incarnation): A restarted member publishes strictly newer identity state.Введите числа или выберите пресет