Git Product home page Git Product logo

gossip's Introduction

Gossip Cluster Framework

A Java implementation of a clustering framework based on gossip networks.

The setup is extremely simple:

Create a cluster with knowledge of at least on other member in the cluster and start the server.

GossipClusterMember otherMember = new GossipClusterMember("2", "otherhost", 8000, System.currentTimeMillis(),"");

GossipCluster cluster = new GossipCluster("1", "localhost", 8000, otherMember);

GossipServer server = new GossipServer(cluster);

server.start();

gossip's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gossip's Issues

Add more states for members

It could be useful to have a more fine-grained distinction of states for cluster members, e.g. joining, up, leaving, down and so on.

For example, when a member tries to join it is in a joining state until everyone else in the cluster agrees that this node is available now. Then it can be promoted to to the "up" state. Other states can be handled in a similar way.

The reason for this proposal is to be able to see when a node should start or stop performing user-defined tasks as a cluster member. E.g. the node that is joining, but is not up yet should not be allowed to serve application level requests (assuming that cluster nodes, when they are ready, serve some sort of requests or perform other application specific tasks).

Or, when node is about to leave, it could do it gracefully, so that others are aware and can prepare for that, e.g. by migrating tasks/data from this node to other cluster nodes.

Use vector clocks instead of absolute time

Very nice and small gossip framework!

But it seems that you use absolute time which is not very safe in distributed environments.
Probably it is a better idea to use vector clocks instead? Some well-known projects like Akka Cluster, Riak, Cassandra and Voldemort seem to use this approach.

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.