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.
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.
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.