Permalink
Browse files

made ltclient.sh wait longer and more randomly. this should help avoi…

…d db contention and sshd servers that are setup to limit the number of connections over time
  • Loading branch information...
1 parent 5a4c535 commit 9a0e0a1faef3d509272d4aead03090768f65de0c @buzztroll buzztroll committed Jan 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 control/bin/ltclient.sh
View
@@ -27,7 +27,8 @@ do
echo "could not submit request adter $cnt tries"
exit $rc
fi
- sleep 0.$RANDOM
+ sp=`expr $RANDOM % 2`
+ sleep $sp.$RANDOM
done_req=0
fi
done
@@ -88,4 +89,5 @@ else
echo "already cleared done flag"
rc=0
fi
+echo "exiting with $rc"
exit $rc

0 comments on commit 9a0e0a1

Please sign in to comment.