Posted by : Sushanth Friday 7 January 2022

 

Gossip Protocol

Gossip protocol is a communication protocol that allows state sharing in distributed systems. Most modern systems use this peer-to-peer protocol to disseminate information to all the members in a network or cluster.

Its also a technique used for detecting the failure of a server in a distributed system.



• Each node maintains a node membership list, which contains member IDs and heartbeat counters.

• Each node periodically increments its heartbeat counter.

 • Each node periodically sends heartbeats to a set of random nodes, which in turn propagate to another set of nodes.

 • Once nodes receive heartbeats, membership list is updated to the latest info.

 • If the heartbeat has not increased for more than predefined periods, the member is considered as offline.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Technical Articles - Skyblue - Powered by Blogger - Designed by Johanes Djogan -