gregr wrote:
So about 16 minutes start to finish. The bulk of the time is spent compiling ruby, pretty much pegged at 100% of one CPU.
I then saved the above image, and cloned it to a new node. The clone process:
6:06 start clone process for 4GB image
6:09 booted, hostname reconfigured, start capistrano deployment
6:11 app deployed and operational
So about 5 minutes start to finish to clone to a new node.
Note that I sized the disk image to only 4GB - if it was larger, as it might well need to be in production, the clone would take longer. Or I could clone a smaller image, then resize it larger prior to boot on the destination - I didn't try that.
for the first option, you can try:
* speedup your ruby compile, with extra options for make like -j4 (4 compiles at the same time, ideal for the 4 cores linode)
* produce an already ruby binary install, try to produce a rpm/deb/tbz2/etc for your distro and deploy this
for the second option, maybe you can rsync your filesystem, instead of clone the disk, to rsync to a full disk.