Coder Social home page Coder Social logo

gossip-and-pushsum's Introduction

Project 2 โ€“ Gossip Simulator

COP5615 - Distributed Operating Systems Principles


Group Info


What is working?

  • All the topologies are working as expected.

  • The least time-consuming algorithm turns out to be random 2D. It converges faster than all others for higher number of nodes. The maximum number of nodes that converged without any failures: 3000.

  • The above mentioned number is bound by constraints imposed by system limitations because the time taken to run is quite low: 7.85 seconds(averaged over 10 runs). The system runs 3000 processes at a time with the given implementation in place and considerable sluggishness in the system is observed. If run on a system with better configuration, it should be able to churn more number of nodes.

  • The line topology works the slowest in gossip. It was hard to converge the line topology in case of pushsum but the convergence times were lesser than 3D grid, Imperfect Line and Torus. The reason behind it lies in the implementation. As a means of failure control in line topology, after convergence of its neighbours the isolated actor sends values to itself and converges on its own. This is essential because then otherwise the entire system would've been left in a halted/hanging state.

  • The imperfect line topology in this project has 3 neighbours instead of two. Two adjacent ones and one random. Interestingly, we found that it works better than most other topologies beacuse of a hint of randomization. It works even better than the fully connected system for both gossip and pushsum.

  • Toroid topology works mostly like the fully connected topology, but for pushsum it strangely takes a lot of time to converge. We decided to make the grid length optimal by always taking a square 2D for Toroid to extract the least possible time for convergence.


Instructions:

  • The input provided (as command line to the program will be of the form:

$ mix run project2.exs numNodes topology algorithm

Topologies: "full", "line", "3D", "torus", "impLine", "rand2D"
Algorithms: "gossip", "pushsum"


Result of running:

$ mix run project2.exs 1000 rand2D gossip
PID<0.2038.0> Converged, remaining: 1000
PID<0.2086.0> Converged, remaining: 999
.
.
.
PID<0.2104.0> Converged, remaining: 2
PID<0.1506.0> Converged, remaining: 1
Time taken to achieve convergence: 375 milliseconds
In case of failures, you should see:
PID<0.2004.0> Convergence failed for a node, remaining 1


gossip-and-pushsum's People

Contributors

ankitprahladsoni avatar

Watchers

 avatar

Forkers

kunal4892

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.