Skip to content

Commit

Permalink
Try to diagnose polling problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 13, 2020
1 parent 1ac7d35 commit d766018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ function run_scale_test_130_pods() {
do
ITERATION_START=$SECONDS
$KUBECTL_PATH scale -f deploy-130-pods.yaml --replicas=130
sleep 150
GET_DEPLOY_OUTPUT=""
while [[ ${#GET_DEPLOY_OUTPUT} -lt 1 && $((SECONDS - ITERATION_START)) -lt 200 ]]
do
sleep 1
echo "Scaling UP"
echo $($KUBECTL_PATH get deploy)
GET_DEPLOY_OUTPUT=$($KUBECTL_PATH get deploy | grep 130/130)
echo "Made it past grep get deploy. Printing grep length and seconds taken"
echo ${#GET_DEPLOY_OUTPUT}
echo $((SECONDS - ITERATION_START))
done

SCALE_UP_DURATION_ARRAY+=( $((SECONDS - ITERATION_START)) )
Expand Down

0 comments on commit d766018

Please sign in to comment.