Parallelize cloud node deployment commands in case of multiple zones (#3657)
This commit is contained in:
		@@ -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" \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user