Skip to content

Commit

Permalink
tests: add further gce perf tests
Browse files Browse the repository at this point in the history
Explicitly specify -6/-4 for the netperf runs. Also run UDP_STREAM
and UDP_RR tests.

Signed-off-by: Daniel Borkmann <daniel@cilium.io>
  • Loading branch information
borkmann authored and tgraf committed Feb 10, 2017
1 parent 94e2832 commit 3bc3b6d
Showing 1 changed file with 40 additions and 9 deletions.
49 changes: 40 additions & 9 deletions tests/09-perf-gce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,49 +117,80 @@ cat <<EOF | kubectl exec -i "${server_cilium}" -- cilium -D policy import -
EOF

function perf_test() {
kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_STREAM -H $SERVER_IP || {
kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t TCP_STREAM -H $SERVER_IP || {
abort "Error: Unable to reach netperf TCP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_STREAM -H $SERVER_IP4 || {
kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t TCP_STREAM -H $SERVER_IP4 || {
abort "Error: Unable to reach netperf TCP endpoint"
}
fi

kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP || {
kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP || {
abort "Error: Unable to reach netperf TCP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP4 || {
kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP4 || {
abort "Error: Unable to reach netperf TCP endpoint"
}
fi

kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP -- -m 256 || {
kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t UDP_STREAM -H $SERVER_IP -- -R1 || {
abort "Error: Unable to reach netperf UDP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t UDP_STREAM -H $SERVER_IP4 -- -R1 || {
abort "Error: Unable to reach netperf UDP endpoint"
}
fi

kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP -- -m 256 || {
abort "Error: Unable to reach netperf TCP endpoint"
}

kubectl exec ${client_pod} -- super_netperf 8 -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP || {
kubectl exec ${client_pod} -- super_netperf 8 -6 -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP || {
abort "Error: Unable to reach netperf TCP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- super_netperf 8 -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP4 || {
kubectl exec ${client_pod} -- super_netperf 8 -4 -l $TEST_TIME -t TCP_SENDFILE -H $SERVER_IP4 || {
abort "Error: Unable to reach netperf TCP endpoint"
}
fi

kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_RR -H $SERVER_IP || {
kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t TCP_RR -H $SERVER_IP || {
abort "Error: Unable to reach netperf TCP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- netperf $HEADERS -l $TEST_TIME -t TCP_RR -H $SERVER_IP4 || {
kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t TCP_RR -H $SERVER_IP4 || {
abort "Error: Unable to reach netperf TCP endpoint"
}
fi

# FIXME
# kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t TCP_CRR -H $SERVER_IP || {
# abort "Error: Unable to reach netperf TCP endpoint"
# }
#
# if [ $SERVER_IP4 ]; then
# kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t TCP_CRR -H $SERVER_IP4 || {
# abort "Error: Unable to reach netperf TCP endpoint"
# }
# fi

kubectl exec ${client_pod} -- netperf -6 $HEADERS -l $TEST_TIME -t UDP_RR -H $SERVER_IP -- -R1 || {
abort "Error: Unable to reach netperf UDP endpoint"
}

if [ $SERVER_IP4 ]; then
kubectl exec ${client_pod} -- netperf -4 $HEADERS -l $TEST_TIME -t UDP_RR -H $SERVER_IP4 -- -R1 || {
abort "Error: Unable to reach netperf UDP endpoint"
}
fi
}

kubectl exec ${server_cilium} -- cilium daemon config DropNotification=false Debug=false
Expand Down

0 comments on commit 3bc3b6d

Please sign in to comment.