Revision e99c765011fb48e56b0ea7b66c618e205171a245 authored by Martynas Pumputis on 11 December 2020, 14:44:33 UTC, committed by Martynas Pumputis on 11 December 2020, 16:20:25 UTC
The updated version contains the following change: arping: Make PingOverIface* to accept source IP addr Instead of trying to derive the src IP with FindIPInNetworkFromIface(), accept src IP addr as a param. The latter function is broken for the case when the iface has IP addr assigned from the /32 subnet and there exists an route to the gw via the iface (GKE). Also, use the source IP addr for arping from the nexthop route. Signed-off-by: Martynas Pumputis <m@lambda.lt>
1 parent 375fb8c
kubernetes-netperftest.sh
#!/bin/bash
export PROMETHEUS_URL="$1"
export PROMETHEUS_USR="$2"
export PROMETHEUS_PSW="$3"
export GOPATH="${HOME}/go"
export PS4="==>"
set -x
go get github.com/kubernetes/perf-tests || echo "Nothing to install"
cd ${GOPATH}/src/github.com/kubernetes/perf-tests/network/benchmarks/netperf/
go run launch.go --kubeConfig $HOME/.kube/config
for fp in $(ls -1 ./results_netperf-latest/*.csv);
do
cat ${fp}
python3 $GOPATH/src/github.com/cilium/cilium/contrib/scripts/netperf_reporter.py ${fp}
done
Computing file changes ...