From 0904df327d787fe40ad78949548a1211b67e5c3c Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Sun, 7 Apr 2019 08:13:48 -0700 Subject: [PATCH] Parallelize cloud node deployment commands in case of multiple zones (#3657) --- net/gce.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/gce.sh b/net/gce.sh index dd556471c7..0b5b537f64 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -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" \