Parallelize cloud node deployment commands in case of multiple zones (#3657)

This commit is contained in:
Pankaj Garg 2019-04-07 08:13:48 -07:00 committed by GitHub
parent 444e87f888
commit 0904df327d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -517,9 +517,11 @@ EOF
fi
cloud_CreateInstances "$prefix" "$prefix-$zone-fullnode" "$numNodesPerZone" \
"$enableGpu" "$fullNodeMachineType" "$zone" "$fullNodeBootDiskSizeInGb" \
"$startupScript" "" "$bootDiskType"
"$startupScript" "" "$bootDiskType" &
done
wait
if [[ $clientNodeCount -gt 0 ]]; then
cloud_CreateInstances "$prefix" "$prefix-client" "$clientNodeCount" \
"$enableGpu" "$clientMachineType" "${zones[0]}" "$clientBootDiskSizeInGb" \