Git Product home page Git Product logo

gossip's Introduction

Gossip

This project is based on "A Gossip-Style Failure Detection Service" https://www.cs.cornell.edu/home/rvr/papers/GossipFD.pdf.

In the paper once a member has been declared faulty, it's removed from the membership list when t-cleanup has expired. T-cleanup is normally 2 X t-fail, that's why in my implementation t-cleanup is not an option in the config.edn, because I'm using 2 X t-fail directly.

I've also added the paremeter fanout, in the paper in each cycle each member gossiped with one member.

The idea is simple, in each node you should setup the initial nodes and the parameters. A configuration file must have: { :initial-nodes [ {:address "127.0.0.1" :port 5555 :local true} {:address "127.0.0.1" :port 5556} {:address "127.0.0.1" :port 5557} ] :t-fail 5000 :cycle 1000 :fanout 2 }

In members/active-nodes you can get the view of this node.

##Usage

Start up a node with: lein run -c config.edn

If you can test it in your machine you can start three nodes with different ports.

$ lein run -c config-5555.edn
$ lein run -c config-5556.edn
$ lein run -c config-5557.edn

License

Copyright © 2016 Félix López Luis

Distributed under the MIT License

gossip's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.