mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 01:41:57 +00:00
The iperf3 server sometimes hangs, or takes a while to startup. Rather than trying to reset the iperf3 state between performance tests, this PR refactors them so they each run in their matrix job. This ensures each performance test will run on a separate VM, unaffected by previous test runs to eliminate the effect any residual network buffer state can have on a particular test. It also makes sure the server is listening with a `healthcheck`.
14 lines
277 B
Bash
Executable File
14 lines
277 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euox pipefail
|
|
|
|
source "./scripts/tests/lib.sh"
|
|
install_iptables_drop_rules
|
|
|
|
docker compose exec --env RUST_LOG=info -it client /bin/sh -c 'iperf3 \
|
|
--zerocopy \
|
|
--udp \
|
|
--bandwidth 1G \
|
|
--client 172.20.0.110 \
|
|
--json' >>"${TEST_NAME}.json"
|