climb hey
This commit is contained in:
parent
50bdc10a51
commit
f9a8b036a7
@ -5,16 +5,19 @@
|
||||
|
||||
#Configuration variables
|
||||
functions=(isprime-kubeless-go-sc)
|
||||
connections=(1000)
|
||||
times=(1m)
|
||||
connections=(45)
|
||||
times=(30s)
|
||||
kuberhost="node1:31299"
|
||||
maxthreads=40
|
||||
#Wave mode configuration
|
||||
wave_connection=40
|
||||
wave_max_conn=160
|
||||
wave_min_conn=40
|
||||
wave_time="1m"
|
||||
wave_time="30s"
|
||||
wave_loop_max=2
|
||||
#Climb mode configuration
|
||||
climb_max=300
|
||||
climb_connection=30
|
||||
|
||||
HEY_INSTALLED=$(command -v hey)
|
||||
if [[ $HEY_INSTALLED = "" ]]
|
||||
@ -102,4 +105,12 @@ do
|
||||
done
|
||||
done
|
||||
fi
|
||||
if [[ $* = *"--climb"* ]]
|
||||
while [[ $climb_connection -lt $climb_max ]]; do
|
||||
echo -e "Connections: $wave_connection"
|
||||
echo -e "Running"
|
||||
hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$climb_connection".wave.csv
|
||||
climb_connection=$((climb_connection + 10))
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user