#301: Allow a single buildslave to service multiple buildmasters
------------------------+-----------------------
Reporter:  dustin       |       Owner:  sridhar
    Type:  enhancement  |      Status:  assigned
Priority:  major        |   Milestone:  1.0.+
 Version:  0.7.7        |  Resolution:
Keywords:               |
------------------------+-----------------------

Comment (by tom.prince):

 A really stupid way to do this is right now is just edit the .tac file to
 start multiple slaves.
 Obviously, they don't communicate at all, and they probably handle
 signals, and shutdown requests strangely. Starting multiple bots in
 BuildSlave would be rather trivial. The tricky part is figuring out how to
 handle locks and shutdown requests.

 {{{

 buildmaster_host = 'master1'
 port = ...
 slavename = 'slave_name'
 passwd = '...'
 keepalive = 600
 usepty = 0
 umask = None
 maxdelay = 300
 slavedir = 'master1'

 s = BuildSlave(buildmaster_host, port, slavename, passwd,
 os.path.join(basedir,slavedir),
                keepalive, usepty, umask=umask, maxdelay=maxdelay)
 s.setServiceParent(application)

 buildmaster_host = 'master2'
 port = ...
 slavename = 'slave_name'
 passwd = '...'
 keepalive = 600
 usepty = 0
 umask = None
 maxdelay = 300
 slavedir = 'master2'

 s = BuildSlave(buildmaster_host, port, slavename, passwd,
 os.path.join(basedir, slavedir),
                keepalive, usepty, umask=umask, maxdelay=maxdelay)
 s.setServiceParent(application)

 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/301#comment:15>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to