Skip to content

Commit

Permalink
Remove sleeps, deleted load balancers in test account.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 24, 2020
1 parent 166a168 commit f429283
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit f429283

Please sign in to comment.