diff --git a/benchmark/classic/benchmark.sh b/benchmark/classic/benchmark.sh index d88390e..6db2c93 100644 --- a/benchmark/classic/benchmark.sh +++ b/benchmark/classic/benchmark.sh @@ -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 diff --git a/functions/scaling/hello-world-go-concurrency.yml b/functions/scaling/hello-world-go-concurrency.yml index abe1842..fb8b644 100644 --- a/functions/scaling/hello-world-go-concurrency.yml +++ b/functions/scaling/hello-world-go-concurrency.yml @@ -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 diff --git a/functions/scaling/hello-world-go.yml b/functions/scaling/hello-world-go.yml index fd346a3..e3873b4 100644 --- a/functions/scaling/hello-world-go.yml +++ b/functions/scaling/hello-world-go.yml @@ -5,7 +5,7 @@ metadata: namespace: default spec: template: - metadata: + metadata: annotations: # Knative cpu-based autoscaling. autoscaling.knative.dev/class: kpa.autoscaling.knative.dev diff --git a/functions/scaling/hello-world-py-concurrency.yml b/functions/scaling/hello-world-py-concurrency.yml index 0ad73ac..c29fb00 100644 --- a/functions/scaling/hello-world-py-concurrency.yml +++ b/functions/scaling/hello-world-py-concurrency.yml @@ -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 diff --git a/functions/scaling/hello-world-py.yml b/functions/scaling/hello-world-py.yml index dd729ac..a5ca1f6 100644 --- a/functions/scaling/hello-world-py.yml +++ b/functions/scaling/hello-world-py.yml @@ -5,7 +5,7 @@ metadata: namespace: default spec: template: - metadata: + metadata: annotations: # Knative cpu-based autoscaling. autoscaling.knative.dev/class: kpa.autoscaling.knative.dev diff --git a/functions/scaling/isprime-go-concurrency.yml b/functions/scaling/isprime-go-concurrency.yml index e0d2baa..8e2258d 100644 --- a/functions/scaling/isprime-go-concurrency.yml +++ b/functions/scaling/isprime-go-concurrency.yml @@ -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 diff --git a/functions/scaling/isprime-go.yml b/functions/scaling/isprime-go.yml index b4228a5..e2b1a04 100644 --- a/functions/scaling/isprime-go.yml +++ b/functions/scaling/isprime-go.yml @@ -5,7 +5,7 @@ metadata: namespace: default spec: template: - metadata: + metadata: annotations: # Knative cpu-based autoscaling. autoscaling.knative.dev/class: kpa.autoscaling.knative.dev diff --git a/functions/scaling/isprime-py-concurrency.yml b/functions/scaling/isprime-py-concurrency.yml index e269303..25c0a41 100644 --- a/functions/scaling/isprime-py-concurrency.yml +++ b/functions/scaling/isprime-py-concurrency.yml @@ -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 diff --git a/functions/scaling/isprime-py.yml b/functions/scaling/isprime-py.yml index 63efbbb..4b27d53 100644 --- a/functions/scaling/isprime-py.yml +++ b/functions/scaling/isprime-py.yml @@ -5,7 +5,7 @@ metadata: namespace: default spec: template: - metadata: + metadata: annotations: # Knative cpu-based autoscaling. autoscaling.knative.dev/class: kpa.autoscaling.knative.dev