Skip to content

Ricart and Agrawala 1983: A simulation using Containers and Django servers

Notifications You must be signed in to change notification settings

TheDhm/RA83_SIMULATION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ricart and Agrawala 1983 (RA83) SIMULATION

About

A simulation of RA83 with 10 containers (running a simple django server) as 10 nodes, and a watchdog server to watch the evolution of the algorithm.

Requirements

  • Docker
  • Django
  • Django Channels
  • Redis

Getting Started

  1. Build the 'ra83-server' image using dockerfile 'RA83D/Dockerfile'

    docker build --rm -t ra83-server:latest RA83D/.
  2. in /ra83_watchdog : migrate and create a superuser

    python manage.py migrate
    python manage.py createsuperuser
  3. Install Redis and start redis-server

  4. Run the Django server 'ra83_watchdog' on port 8000:

    python manage.py runserver 0.0.0.0:8000
  5. create 10 worker instances using django admin

  6. Deploy the containers: run 'RA83D/start_servers.py'

    python RA83D/start_servers.py
  7. visit http://localhost:8000 :

About

Ricart and Agrawala 1983: A simulation using Containers and Django servers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published