Increase node start stagger (#6566)
This commit is contained in:
parent
ea2b26e5f5
commit
a2a9d54985
|
@ -722,8 +722,10 @@ deploy() {
|
||||||
# Stagger additional node start time. If too many nodes start simultaneously
|
# Stagger additional node start time. If too many nodes start simultaneously
|
||||||
# the bootstrap node gets more rsync requests from the additional nodes than
|
# the bootstrap node gets more rsync requests from the additional nodes than
|
||||||
# it can handle.
|
# it can handle.
|
||||||
if ((nodeIndex % 2 == 0)); then
|
if ((nodeIndex % 3 == 0)); then
|
||||||
sleep 2
|
sleep 2
|
||||||
|
elif ((nodeIndex % 3 == 1)); then
|
||||||
|
sleep 4
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -105,7 +105,7 @@ waitForNodeToInit() {
|
||||||
echo "--- waiting for $hostname to boot up"
|
echo "--- waiting for $hostname to boot up"
|
||||||
SECONDS=
|
SECONDS=
|
||||||
while [[ ! -r $initCompleteFile ]]; do
|
while [[ ! -r $initCompleteFile ]]; do
|
||||||
if [[ $SECONDS -ge 120 ]]; then
|
if [[ $SECONDS -ge 240 ]]; then
|
||||||
echo "^^^ +++"
|
echo "^^^ +++"
|
||||||
echo "Error: $initCompleteFile not found in $SECONDS seconds"
|
echo "Error: $initCompleteFile not found in $SECONDS seconds"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue