minor changes to benchmark script

This commit is contained in:
Torma Kristóf 2019-10-20 23:49:19 +02:00
parent eaa1602434
commit 468f13c3ca
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
9 changed files with 11 additions and 12 deletions

View File

@ -92,7 +92,7 @@ do
fi
echo -e "Threads: $threads Connections $connection\n"
for time in "${times[@]}"
do
do
datetime=$(date '+%Y-%m-%d-%H-%M-%S')
echo -e "Time: $time\n"
if [[ $* = *"--hey"* ]]
@ -128,15 +128,13 @@ do
fi
done
fi
echo -e "Finished at $datetime"
done
done
fi
if [[ $* = *"--climb"* ]]
then
while [[ $climb_connection -lt $climb_max ]]; do
echo -e "Connections: $wave_connection"
echo -e "Running"
echo -e "Connections: $climb_connection"
if $kubeless;
then
hey -c $climb_connection -z $time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$climb_connection".wave.csv
@ -146,4 +144,5 @@ do
climb_connection=$((climb_connection + 10))
done
fi
echo -e "Finished at $datetime"
done

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev

View File

@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
template:
metadata:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev