[Buildbot-devel] EC2LatentBuildSlave
Julia S.S.
hithwen at gmail.com
Mon Jun 24 13:27:02 UTC 2013
Thanks a lot, I'll try it later
You can make a pull request in github for maintainers to consider it
https://github.com/buildbot/buildbot
On Mon, Jun 24, 2013 at 3:20 PM, Fabrizio Buratta <fabrizio at moldiscovery.com
> wrote:
>
> 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?
>>
>
> Julia,
>
> 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 ',
> identifier='youraccesskey',
> secret_identifier='yoursecret',
> missing_timeout=60*20,
> build_wait_timeout=60*10,
> max_builds=1
> ),
>
>
> 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/5e4e374e/attachment.html>
More information about the devel
mailing list