Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 909 Bytes

File metadata and controls

31 lines (21 loc) · 909 Bytes

Base code for coding distributed systems

This is a simple code base for coding distributed systems that relies on Salticidae for the communication, on netem to simiulate different network latencies, and on Docker to run the code in containers. It runs a simple client/server application, with the servers pinging each other.

Requirements

This requires installing Docker, jq, python.

This page explains how to install Docker. In particular follow the following instructions so that you can run Docker as a non-root user.

Usage

Create the Docker image:

docker build -t test .

Run

python3 test.py --servers N

where N is the number of servers you want to use.