Giter Club home page Giter Club logo

distributed_project's Introduction

Distributed systems project

BUILD

Requirements and building

  1. Gradle 7.6
    Can be installed with this installation guide.
    The command will be ./gradlew wrapper --gradle-version=7.6 --distribution-type=bin.
    Installation can be verified with ./gradlew --version.
  2. JDK 11+
    Can be installed with this installation guide.
    Installation can be verified with java --version.

Build and install dependencies using:

./gradlew build clean

Build and run

NB! Every launcher needs RabbitMQ 3.11 up and running on current host (localhost) on default ports (5672, 15672).

To run RabbitMQ, the following command can be used:

docker run -it --rm --name Rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.11-management

In that case the following command can be used to check if RabbitMQ is available:

docker exec Rabbitmq rabbitmq-diagnostics -q check_running

Configuration files:
Each launcher can accept two parameters or zero parameters (in that case the defaults will be used).
First parameter is a configuration file (without file extension) (physical first, virtual second).
These files should reside in src/main/resources directories.
Files should contain physical and virtual configuration matrixes in .CSV format, where connected nodes are represented by 1 and not connected by -1.

Simple launcher

Simple launcher runs all the nodes in a single thread:

./gradlew -P MAIN_CLASS=ds.launchers.SimpleLauncher run [--args="PHYSICAL_CONFIG VIRTUAL_CONFIG"]

Process launcher

Process launcher runs all the nodes in different native processes (fork / join):

./gradlew -P MAIN_CLASS=ds.launchers.ProcessLauncher run [--args="PHYSICAL_CONFIG VIRTUAL_CONFIG"]

Individual launcher

Individual launcher runs a single node (gets its' id from PHYSICAL_ID environmental variable).
Can be used to run system on separate processes / machines / hosts / containers:

./gradlew -P MAIN_CLASS=ds.launchers.IndividualLauncher run [--args="PHYSICAL_CONFIG VIRTUAL_CONFIG"]

Run whole system using default configurations in separate Docker containers:

bash docker/run_containers.sh

distributed_project's People

Contributors

pseusys avatar ssoleil avatar pia314 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.