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
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue