ci: remove jitter from docker-compose (#10589)

Jitter causes packets to get re-ordered which makes it really hard to
get predictable performance results. With jitter disabled, we get more
consistent performance numbers.
This commit is contained in:
Thomas Eizinger
2025-10-17 00:34:59 +11:00
committed by GitHub
parent 5272e0c992
commit 17ab1a6d04

View File

@@ -67,10 +67,9 @@ fi
# Add configurable latency if specified
if [ -n "${NETWORK_LATENCY_MS:-}" ]; then
LATENCY=$((NETWORK_LATENCY_MS / 2)) # Latency is only applied to outbound packets. To achieve the actual configured latency, we apply half of it to each interface.
JITTER=$((LATENCY / 5)) # Vary latency by 20%
tc qdisc add dev internet root netem delay "${LATENCY}ms" "${JITTER}ms"
tc qdisc add dev internal root netem delay "${LATENCY}ms" "${JITTER}ms"
tc qdisc add dev internet root netem delay "${LATENCY}ms"
tc qdisc add dev internal root netem delay "${LATENCY}ms"
fi
echo "-----------------------------------------------------------------------------------------------"