GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vccolombo/Gossip-membership-protocol: A simulated implementation of a Gossip Membership Protocol for distributed systems.

This repository was archived by the owner on Jan 22, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
includes
includes
 
 
logs
logs
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 
run.sh
run.sh
 
 

Repository files navigation

Gossip Membership Protocol

Gossip membership protocol implementation and simulation

What is gossip membership protocol in distributed systems?

"In data centers, failures are the norm rather than the exception"

In distributed systems, there is a constant necessity to find what nodes are up and which ones have failed. The goal of a membership protocol is to allow nodes to detect that other nodes have failed.

There are several ways for this to be implemented. One of them is to have a central node that every other node sends heartbeats to. If a node stops sending heartbeats, it is considered failed. However, what if the central node itself fails? Another option would be to have each node send heartbeats to every other node. This is very expensive to the network, as there are N^2 messages for every heartbeat cycle.

The gossip membership protocol tackles this problem by sending its heartbeat to only a few other nodes, along with information about other nodes that it has heard from recently. The idea is to have its heartbeat propagate like a gossip, from one peer to another. More information about it can be found here

This implementation

The implementation in this repository is really basic. The node gossips to a random peer and sends its entire membership table in the message. The implementation is robust against both node failures and messages lost during transmission, as shown in the simulation. Node failure chance and message drop ratio can be changed in Config.hpp.

Better implementations take notice of the network topology, choosing peers that are closer to itself (like in the same rack) as a way to decrease usage on routers. Also, it is not necessary to send the entire table on every message, as a way to decrease network usage, at a cost of more false positives.

About

A simulated implementation of a Gossip Membership Protocol for distributed systems.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.