Increase node start stagger (#6566)

This commit is contained in:
Dan Albert 2019-10-25 17:35:29 -06:00 committed by GitHub
parent ea2b26e5f5
commit a2a9d54985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -722,8 +722,10 @@ deploy() {
# Stagger additional node start time. If too many nodes start simultaneously
# the bootstrap node gets more rsync requests from the additional nodes than
# it can handle.
if ((nodeIndex % 2 == 0)); then
if ((nodeIndex % 3 == 0)); then
sleep 2
elif ((nodeIndex % 3 == 1)); then
sleep 4
fi
fi
done

View File

@ -105,7 +105,7 @@ waitForNodeToInit() {
echo "--- waiting for $hostname to boot up"
SECONDS=
while [[ ! -r $initCompleteFile ]]; do
if [[ $SECONDS -ge 120 ]]; then
if [[ $SECONDS -ge 240 ]]; then
echo "^^^ +++"
echo "Error: $initCompleteFile not found in $SECONDS seconds"
exit 1