Tweak GCE scripts for higher node count (#1229)
* Tweak GCE scripts for higher node count - Some validators were unable to rsync config from leader when the node count was high (e.g. 25). Looks like the leader node was getting more rsync requests in parallel than it count handle. - This change staggers the validators bootup, and rsync time * Address review comments
This commit is contained in:
parent
e142aafca9
commit
be7cce1fd2
|
@ -254,8 +254,14 @@ start() {
|
|||
|
||||
SECONDS=0
|
||||
pids=()
|
||||
loopCount=0
|
||||
for ipAddress in "${validatorIpList[@]}"; do
|
||||
startValidator "$ipAddress"
|
||||
|
||||
# Staggering validator startup time. If too many validators
|
||||
# bootup simultaneously, leader node gets more rsync requests
|
||||
# from the validators than it can handle.
|
||||
((loopCount++ % 2 == 0)) && sleep 2
|
||||
done
|
||||
|
||||
for pid in "${pids[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue