diff options
author | 2017-11-27 16:47:14 -0800 | |
---|---|---|
committer | 2017-11-27 16:47:14 -0800 | |
commit | f615fa0f50ab849526434cfe24a25246696df339 (patch) | |
tree | 095b881e7bf6137a5724d187da6c8d58dcf38562 /tools | |
parent | d18cb7f951829c18834e3e8905f810cbe97b538a (diff) |
Run actions in parallel to reduce overall deploy time.
JIRA: VES-2
Change-Id: I557429ceb44f221057748d75d37d7f0fa58d8b41
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/demo_deploy.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/demo_deploy.sh b/tools/demo_deploy.sh index 973b381..d8f6be0 100644 --- a/tools/demo_deploy.sh +++ b/tools/demo_deploy.sh @@ -92,9 +92,6 @@ ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ bash /tmp/ves/tools/ves-setup.sh collector bash /tmp/ves/tools/ves-setup.sh kafka bash /tmp/ves/tools/ves-setup.sh agent $cloudify - ves_collectd=$ves_collectd - export ves_collectd - bash /tmp/ves/tools/ves-setup.sh collectd EOF scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ @@ -102,17 +99,20 @@ scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ echo; echo "$0 $(date): VES Grafana dashboards are available at http://$master:3001 (login as admin/admin)" -for node in $workers; do +nodes="$master $workers" +for node in $nodes; do echo; echo "$0 $(date): Setting up collectd at $node" - scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ - ~/ves ubuntu@$node:/tmp + if [[ "$node" != "$master" ]]; then + scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ + ~/ves ubuntu@$node:/tmp + fi ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ - ubuntu@$node <<EOF + ubuntu@$node <<EOF > /dev/null 2>&1 & ves_kafka_host=$master export ves_kafka_host ves_kafka_hostname=$ves_kafka_hostname export ves_kafka_hostname - ves_collectd=$ves_collectd + ves_collectd=build export ves_collectd bash /tmp/ves/tools/ves-setup.sh collectd EOF |