Giter Club home page Giter Club logo

duck_duck_goose's Introduction

DuckDuckGoose

The objective of this project is to evaluate the functionality, reliability, and fault tolerance of a system designed to select a single node as a "Goose" within a cluster of nodes, with all other nodes designated as "Ducks." The system should dynamically handle node failures, rejoins, and network partitions while ensuring that only one Goose node is active at any given time.

Technologies used:

  • Libcluster
  • OTP(genserver, etc)
  • Phoenix framework
  • Elixir

Technical details

  1. Design Verification: Selection of a Goose node, handling of node failures and rejoins,
  2. Node Selection: Selects one node as the Goose and designates all other nodes as Ducks.
  3. Failover Mechanism: Simulate the failure of the current Goose node and verify that another Duck node is automatically promoted to become the new Goose. Validate that the failover process occurs seamlessly without impacting the overall operation of the system.
  4. Goose Rejoin: Simulate the rejoining of a previously failed Goose node and confirm that it is appropriately demoted to a Duck if another Goose node is already active.

How to run:

  • mix deps.get
  • Run multiples nodes using $ iex --sname node_name -S mix phx.server (change sname)
  • You can see the port on console to access the api like [info] Running DuckDuckGooseWeb.Endpoint with Bandit 1.5.0 at 127.0.0.1:36153 (http)

Now you can visit 127.0.0.1:36153/api/status to see if desired node is a goose or a duck also you can follow the logs to see what is happening

duck_duck_goose's People

Contributors

mbenatti avatar

Watchers

 avatar

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.