Create a test network using network namespaces and tc-netem
Find a file
2022-09-14 18:04:03 +02:00
benchmarks Working s3lat with Garage 2022-09-14 18:01:44 +02:00
scenarios Working s3lat with Garage 2022-09-14 18:01:44 +02:00
topo New way to deploy Garage 2022-09-14 17:25:16 +02:00
.gitignore Working s3lat with Garage 2022-09-14 18:01:44 +02:00
.gitmodules Update warp submodule 2022-09-14 18:04:03 +02:00
LICENSE add license 2021-12-12 17:54:54 +01:00
mknet add support for limiting queue len 2022-08-31 21:29:18 +02:00
net.py add support for limiting queue len 2022-08-31 21:29:18 +02:00
README.md fix pip instruction 2021-12-08 18:06:53 +01:00
setup.py New way to deploy Garage 2022-09-14 17:25:16 +02:00
shell.nix New way to deploy Garage 2022-09-14 17:25:16 +02:00

mknet

Installation

sudo pip3 install git+https://git.deuxfleurs.fr/trinity-1686a/mknet

Usage

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

Instrumented daemons

If you want to use the scripts provided in the example 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

Minio (deploy_minio.py)

sudo wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio
sudo chmod +x /usr/local/bin/minio