climb hey
This commit is contained in:
parent
50bdc10a51
commit
f9a8b036a7
@ -5,16 +5,19 @@
|
|||||||
|
|
||||||
#Configuration variables
|
#Configuration variables
|
||||||
functions=(isprime-kubeless-go-sc)
|
functions=(isprime-kubeless-go-sc)
|
||||||
connections=(1000)
|
connections=(45)
|
||||||
times=(1m)
|
times=(30s)
|
||||||
kuberhost="node1:31299"
|
kuberhost="node1:31299"
|
||||||
maxthreads=40
|
maxthreads=40
|
||||||
#Wave mode configuration
|
#Wave mode configuration
|
||||||
wave_connection=40
|
wave_connection=40
|
||||||
wave_max_conn=160
|
wave_max_conn=160
|
||||||
wave_min_conn=40
|
wave_min_conn=40
|
||||||
wave_time="1m"
|
wave_time="30s"
|
||||||
wave_loop_max=2
|
wave_loop_max=2
|
||||||
|
#Climb mode configuration
|
||||||
|
climb_max=300
|
||||||
|
climb_connection=30
|
||||||
|
|
||||||
HEY_INSTALLED=$(command -v hey)
|
HEY_INSTALLED=$(command -v hey)
|
||||||
if [[ $HEY_INSTALLED = "" ]]
|
if [[ $HEY_INSTALLED = "" ]]
|
||||||
@ -102,4 +105,12 @@ do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
fi
|
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
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user