rackspace/repose — pull request #431 by rich4632 (2012-09-05 20:04:17+00:00)
Title: Rich4632 rcman improvements - better server names, server ids in log, building in parallel

Building in parallel yielded a 33% speed improvement, at the cost of log entries getting out of order.
Server names include the hour and second of creation, instead of just the minute, and also the prefix "rcman-". This makes the servers easier to pick out of a list, and determine when they were created.

To show speed improvement. Here's a sequential build:

> $ /usr/bin/time ./rcman --create-cluster
"build"
building server 1
Building rcman-31Aug12-124655-rich4632-1...
"Building repose server..."
"done!"
Uploading install files...
"done!"
Installing ruby and chef...
done!
Installing repose...
done!
done!
Starting repose...
done!
done!
Repose Regression Box built:	184.106.175.203
building server 2...
Building rcman-31Aug12-125613-rich4632-2...
"Building repose server..."
"done!"
Uploading install files...
"done!"
Installing ruby and chef...
done!
Installing repose...
done!
done!
Starting repose...
done!
Repose Regression Box 2 built:	184.106.175.205
Waiting for repose to start on port 8887
Waiting for repose to start on port 8888
Waiting for repose to start on port 8889
Waiting for repose to start on port 8890
Waiting for repose to start on port 8891
Waiting for repose to start on port 8892
Waiting for repose to start on port 8080
Waiting for repose to start on port 8080
*1230.96 real 27.71 user 12.59 sys*

And here's the parallel build:

>$ /usr/bin/time ./rcman --create-cluster
"build"
building server 1
Building rcman-31Aug12-122949-rich4632-1...
building server 2...
Building rcman-31Aug12-122949-rich4632-2...
"Building repose server..."
"Building repose server..."
"done!"
Uploading install files...
"done!"
Uploading install files...
"done!"
Installing ruby and chef...
"done!"
Installing ruby and chef...
done!
Installing repose...
done!
done!
Starting repose...
done!
Installing repose...
done!
Repose Regression Box 2 built:	184.106.175.201
Waiting for repose to start on port 8080
done!
done!
Starting repose...
done!
done!
Repose Regression Box built:	184.106.174.47
Waiting for repose to start on port 8887
Waiting for repose to start on port 8888
Waiting for repose to start on port 8889
Waiting for repose to start on port 8890
Waiting for repose to start on port 8891
Waiting for repose to start on port 8892
Waiting for repose to start on port 8080
*815.84 real 27.59 user 8.10 sys*