|
|
@ -41,13 +41,15 @@ echo "Now all clients flood the server at the same time..." |
|
|
|
|
|
|
|
|
|
|
|
for POD in ${CLIENTS}; do |
|
|
|
for POD in ${CLIENTS}; do |
|
|
|
echo "[Run] iperf2-client pod ${POD}" |
|
|
|
echo "[Run] iperf2-client pod ${POD}" |
|
|
|
kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@" &> /dev/null & |
|
|
|
#kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@" &> /dev/null & |
|
|
|
|
|
|
|
kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
until [[ $(jobs | grep -v Running) != "" ]]; do |
|
|
|
#until [[ $(jobs | grep -v Running) != "" ]]; do |
|
|
|
printf "." |
|
|
|
# printf "." |
|
|
|
sleep 2 |
|
|
|
# sleep 2 |
|
|
|
done |
|
|
|
#done |
|
|
|
|
|
|
|
|
|
|
|
printf " done\n" |
|
|
|
printf " done\n" |
|
|
|
|
|
|
|
|
|
|
|
## </run> |
|
|
|
## </run> |
|
|
|