minor changes to benchmark script
This commit is contained in:
		@@ -92,7 +92,7 @@ do
 | 
				
			|||||||
            fi
 | 
					            fi
 | 
				
			||||||
            echo -e "Threads: $threads Connections $connection\n"
 | 
					            echo -e "Threads: $threads Connections $connection\n"
 | 
				
			||||||
                for time in "${times[@]}"
 | 
					                for time in "${times[@]}"
 | 
				
			||||||
        do
 | 
					                do
 | 
				
			||||||
                    datetime=$(date '+%Y-%m-%d-%H-%M-%S')
 | 
					                    datetime=$(date '+%Y-%m-%d-%H-%M-%S')
 | 
				
			||||||
                    echo -e "Time: $time\n"
 | 
					                    echo -e "Time: $time\n"
 | 
				
			||||||
                    if [[ $* = *"--hey"* ]]
 | 
					                    if [[ $* = *"--hey"* ]]
 | 
				
			||||||
@@ -128,15 +128,13 @@ do
 | 
				
			|||||||
                            fi
 | 
					                            fi
 | 
				
			||||||
                        done
 | 
					                        done
 | 
				
			||||||
                    fi
 | 
					                    fi
 | 
				
			||||||
                    echo -e "Finished at $datetime"
 | 
					 | 
				
			||||||
            done
 | 
					            done
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if [[ $* = *"--climb"* ]]
 | 
					    if [[ $* = *"--climb"* ]]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        while [[ $climb_connection -lt $climb_max ]]; do
 | 
					        while [[ $climb_connection -lt $climb_max ]]; do
 | 
				
			||||||
                echo -e "Connections: $wave_connection"
 | 
					                echo -e "Connections: $climb_connection"
 | 
				
			||||||
                echo -e "Running"
 | 
					 | 
				
			||||||
                if $kubeless;
 | 
					                if $kubeless;
 | 
				
			||||||
                then
 | 
					                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
 | 
					                    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))
 | 
					                climb_connection=$((climb_connection + 10))
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					    echo -e "Finished at $datetime"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative concurrency-based autoscaling (default).
 | 
					        # Knative concurrency-based autoscaling (default).
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative cpu-based autoscaling.
 | 
					        # Knative cpu-based autoscaling.
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative concurrency-based autoscaling (default).
 | 
					        # Knative concurrency-based autoscaling (default).
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative cpu-based autoscaling.
 | 
					        # Knative cpu-based autoscaling.
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative concurrency-based autoscaling (default).
 | 
					        # Knative concurrency-based autoscaling (default).
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative cpu-based autoscaling.
 | 
					        # Knative cpu-based autoscaling.
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative concurrency-based autoscaling (default).
 | 
					        # Knative concurrency-based autoscaling (default).
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ metadata:
 | 
				
			|||||||
  namespace: default
 | 
					  namespace: default
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
  metadata:
 | 
					    metadata:
 | 
				
			||||||
      annotations:
 | 
					      annotations:
 | 
				
			||||||
        # Knative cpu-based autoscaling.
 | 
					        # Knative cpu-based autoscaling.
 | 
				
			||||||
        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
					        autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user