From f42928333ba3eb7fa5ef0200a9c1991d7774d03c Mon Sep 17 00:00:00 2001 From: Ben Napolitan Date: Wed, 24 Jun 2020 13:26:51 -0400 Subject: [PATCH] Remove sleeps, deleted load balancers in test account. --- scripts/lib/common.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/lib/common.sh b/scripts/lib/common.sh index 2a588dc16f..fe6b4e37eb 100644 --- a/scripts/lib/common.sh +++ b/scripts/lib/common.sh @@ -40,7 +40,7 @@ function run_scale_test_130_pods() { ITERATION_START=$SECONDS $KUBECTL_PATH scale -f deploy-130-pods.yaml --replicas=130 sleep 20 - while [[ ! $($KUBECTL_PATH get deploy | grep 130/130) && $((SECONDS - ITERATION_START)) -lt 200 ]] + while [[ ! $($KUBECTL_PATH get deploy | grep 130/130) ]] do sleep 1 echo "Scaling UP" @@ -50,7 +50,7 @@ function run_scale_test_130_pods() { SCALE_UP_DURATION_ARRAY+=( $((SECONDS - ITERATION_START)) ) MIDPOINT_START=$SECONDS $KUBECTL_PATH scale -f deploy-130-pods.yaml --replicas=0 - while [[ $($KUBECTL_PATH get pods) && $((SECONDS - MIDPOINT_START)) -lt 200 ]] + while [[ $($KUBECTL_PATH get pods) ]] do sleep 1 echo "Scaling DOWN" @@ -102,7 +102,7 @@ function run_scale_test_730_pods() { ITERATION_START=$SECONDS $KUBECTL_PATH scale -f deploy-730-pods.yaml --replicas=730 sleep 100 - while [[ ! $($KUBECTL_PATH get deploy | grep 730/730) && $((SECONDS - ITERATION_START)) -lt 200 ]] + while [[ ! $($KUBECTL_PATH get deploy | grep 730/730) ]] do sleep 2 echo "Scaling UP" @@ -113,7 +113,7 @@ function run_scale_test_730_pods() { MIDPOINT_START=$SECONDS $KUBECTL_PATH scale -f deploy-730-pods.yaml --replicas=0 sleep 100 - while [[ $($KUBECTL_PATH get pods) && $((SECONDS - MIDPOINT_START)) -lt 200 ]] + while [[ $($KUBECTL_PATH get pods) ]] do sleep 2 echo "Scaling DOWN" @@ -165,7 +165,7 @@ function run_scale_test_5000_pods() { ITERATION_START=$SECONDS $KUBECTL_PATH scale -f deploy-5000-pods.yaml --replicas=5000 sleep 100 - while [[ ! $($KUBECTL_PATH get deploy | grep 5000/5000) && $((SECONDS - ITERATION_START)) -lt 200 ]] + while [[ ! $($KUBECTL_PATH get deploy | grep 5000/5000) ]] do sleep 2 echo "Scaling UP" @@ -176,7 +176,7 @@ function run_scale_test_5000_pods() { MIDPOINT_START=$SECONDS $KUBECTL_PATH scale -f deploy-5000-pods.yaml --replicas=0 sleep 100 - while [[ $($KUBECTL_PATH get pods) && $((SECONDS - MIDPOINT_START)) -lt 200 ]] + while [[ $($KUBECTL_PATH get pods) ]] do sleep 2 echo "Scaling DOWN"