Gossip Protocols: How Large Clusters Track Membership and Failures Without Central Coordination

Large distributed clusters need to know which nodes are alive, but having every node ping every other node becomes prohibitively expensive as the cluster grows. Gossip protocols solve this by having each node share cluster state with a small, fixed number of random peers per round, so information spreads exponentially. The approach avoids both a central registry and all-to-all heartbeats, and systems such as Cassandra, Consul, and Dynamo rely on it. The article explains that spreading a fact through 1,000 nodes takes only about seven rounds with a fanout of three, and it notes that the last stragglers take longer to reach. The method borrows its mathematics from epidemiology, a link reflected in the 1987 paper that named these approaches epidemic algorithms.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in