[Buildbot-devel] EC2LatentBuildSlave

Fabrizio Buratta fabrizio at moldiscovery.com
Mon Jun 24 13:20:48 UTC 2013

On Mon, Jun 24, 2013 at 3:04 PM, Julia S.S. <hithwen at gmail.com> wrote:

> Hi, I'm playing around with EC2LatentBuildSlave.
> I've observed every time a build runs it creates a new instance from base
> ami, this is slow (it takes longer to create the instance than the build
> itself). Is there a way to make buildbot reuse same instance and just
> stop/start it?


I've created a slave class to do exactly what you said ( attachment ). Just
copy it in the same directory of your master.cfg.

it uses the instance id to start/stop. I have this in my master.cfg :

from custom_latent_buildslaves import EC2LatentBuildSlaveInstanceID

c['slaves'] = [

    EC2LatentBuildSlaveInstanceID("slavename", "slavepassword",
                instanceid='your existing instance id',
                region='the region your instance is ',

 Hope the developers will take it into account and include it in some
buildbot releases.

Fabrizio Buratta
Molecular Discovery Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130624/c68a61bb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom_latent_buildslaves.py
Type: application/octet-stream
Size: 7671 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20130624/c68a61bb/attachment.obj>

More information about the devel mailing list