Create a test network using network namespaces and tc-netem
Find a file
2021-11-25 11:16:13 +01:00
instrumented Fix a bug in deploy_garage 2021-11-25 11:16:13 +01:00
.gitignore mvp 2021-11-03 13:52:42 +01:00
config.yml update to support garage new layout concept 2021-11-18 19:21:58 +01:00
main.py add support for upstream port and add garage example script 2021-11-08 09:25:14 +01:00
net.py add support for upstream port and add garage example script 2021-11-08 09:25:14 +01:00
README.md Fix a bug in deploy_garage 2021-11-25 11:16:13 +01:00

mk-testnet

Show usage:

python3 main.py

Example

sudo rm -rf /tmp/garage-testnet/ # always start by deleting previous run
sudo python3 main.py create ./config.yml
sudo python3 main.py run-all example/deploy_garage.sh
sudo python3 main.py run dc1:dc1s1 garage -c /tmp/garage-testnet/dc1/dc1s1/garage.toml status
sudo python3 main.py destroy

Instrumented daemons

If you want to use the scripts provided in the instrumented folder, you must add to your path some tools

Garage (deploy_garage.sh)

# see versions on https://garagehq.deuxfleurs.fr/_releases.html
export GRG_ARCH=x86_64-unknown-linux-musl
export GRG_VERSION=v0.5.0

sudo wget https://garagehq.deuxfleurs.fr/_releases/${GRG_VERSION}/${GRG_ARCH}/garage -O /usr/local/bin/garage
sudo chmod +x /usr/local/bin/garage

garage help