From d99422884b83dabade70834d2bbf243216611620 Mon Sep 17 00:00:00 2001 From: Matt Brannock Date: Tue, 4 Dec 2018 13:56:52 -0800 Subject: [PATCH] Create managed instance groups for nodes in parallel --- cluster/gce/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 79ba5f7db85..c6129198cec 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -2342,7 +2342,6 @@ function create-nodes() { local instances_left=${nodes} - #TODO: parallelize this loop to speed up the process for ((i=1; i<=${NUM_MIGS}; i++)); do local group_name="${NODE_INSTANCE_PREFIX}-group-$i" if [[ $i == ${NUM_MIGS} ]]; then @@ -2365,8 +2364,9 @@ function create-nodes() { "${group_name}" \ --zone "${ZONE}" \ --project "${PROJECT}" \ - --timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true; + --timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true & done + wait } # Assumes: