Commit e649bd3a authored by David Johnson's avatar David Johnson

Let nova parallelize VM creation for us; should be faster.

parent 18957212
Pipeline #1856 passed with stage
in 2 seconds
......@@ -108,15 +108,11 @@ if [ ! $? -eq 0 ]; then
print "ERROR: failed to create resourcemanager VM; aborting!"
exit 1
fi
i=0
while [ $i -lt $NSLAVES ]; do
nova boot --image hadoop --flavor m1.medium --nic net-id=$NETWORKID slave$i
if [ ! $? -eq 0 ]; then
print "ERROR: failed to create slave$i VM; aborting!"
exit 1
fi
i=`expr $i + 1`
done
nova boot --image hadoop --flavor m1.medium --nic net-id=$NETWORKID --min-count $NSLAVES slave
if [ ! $? -eq 0 ]; then
print "ERROR: failed to create slave VMs; aborting!"
exit 1
fi
#
# Wait for all nodes to have booted, then wait 10 seconds more...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment