Skip to content

Commit

Permalink
Wait until all node groups are stable on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Aug 23, 2017
1 parent 45e72d6 commit 9d78e76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playbooks/roles/gce-provision/templates/provision.j2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,11 @@ else
fi
) &

# wait until all node groups are stable
{% for node_group in provision_gce_node_groups %}
# wait for stable {{ node_group.name }}
( gcloud --project "{{ gce_project_id }}" compute instance-groups managed wait-until-stable "{{ provision_prefix }}ig-{{ node_group.suffix }}" --zone "{{ gce_zone_name }}" --timeout=300) &
{% endfor %}


for i in `jobs -p`; do wait $i; done

0 comments on commit 9d78e76

Please sign in to comment.