This commit is contained in:
Drazen Urch
2024-09-16 17:15:40 +02:00
committed by GitHub
parent 086611c7ac
commit a512217382
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -4,15 +4,17 @@
set -ex
users=${2:-10}
timeout=${1:-600}
private_key=${1}
network=${2:-mainnet}
timeout=${3:-600}
users=${4:-10}
RUST_LOG=info nym-network-monitor --env mainnet.env --host 127.0.0.1 --port 8080 &
RUST_LOG=info nym-network-monitor --env envs/"${network}".env --host 127.0.0.1 --port 8080 --private-key "${private_key}" &
nnm_pid=$!
sleep 10
python -m locust -H http://127.0.0.1:8080 --processes 4 --autostart --autoquit 60 -u "$users" -t "$timeout"s &
python -m locust -H http://127.0.0.1:8080 --processes 4 --autostart --autoquit 60 -u "${users}" -t "${timeout}"s &
locust_pid=$!
wait $locust_pid