This commit is contained in:
Torma Kristóf 2019-10-20 21:33:49 +02:00
parent be59126cdd
commit 50bdc10a51
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -91,6 +91,13 @@ do
echo -e "hey-csv $datetime\n" echo -e "hey-csv $datetime\n"
hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".csv hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".csv
fi fi
if [[ $* = *"--for"* ]]
for num in 1 2 3 4 5 6 7 8 9 10
do
echo -e "hey-for $datetime\n"
hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$num".csv
done
fi
echo -e "Finished at $datetime" echo -e "Finished at $datetime"
done done
done done