[Buildbot-devel] Re: running buildbot on multimaster mode

Maria Marcano mariangemarcano at gmail.com
Mon Feb 18 14:16:03 UTC 2013


Update: added the db_poll_internal under the db parameter and the
queue still isnt getting process, running buildbot (0.8.7p1)


c['db'] = {
    'db_url' : 'mysql://...',
    'db_poll_interval' : 30,}



On Mon, Feb 18, 2013 at 2:44 PM, Maria Marcano <mariangemarcano at gmail.com>wrote:

> I’m trying to run buildbot with multi-master mode with the following
> configuration:
>
>
> Buildmaster01 have schedulers, source changes, and builders
>
> Buildmaster02 have builders
>
> Both are using mysql db  Connecting same share database, have
>  c['multiMaster'] = True
>
> and c['db_poll_interval'] = 110
>
>
> When I force the build I notice the pending build request on both
> Buildmaster01 and Buildmaster02 but none of the master process the
> request.  Do you know what’s could be wrong in my configuration?
>
> Configuration files look something like this example:
>
>
> *Buildmaster01*:
>
> c['schedulers'].append(ForceScheduler(
>
>                             name="force-various",
>
>                             builderNames=[ "Build Test"],
>
>                             codebases = { CodebaseParameter('', branch =
> ChoiceStringParameter(name="branch", choices=["trunk", "default"],
> default="trunk"),
>
>                                 repository =
> FixedParameter(name="repository", default=hgrepo))}))
>
>>
> def TestFactory():
>
>     factory = BuildFactory()
>
>     factory.addStep(ShellCommand(command=["ls"]))
>
>     return factory
>
> ..
>
> c['builders'] = []
>
> c['builders'].append(
>
>     BuilderConfig(name="Build Test",
>
>       slavenames = winSlaves, slavebuilddir="test",
>
>       factory= TestFactory(),
>
>                   locks = [build_lock.access('exclusive')]))
>
>
>
> c['multiMaster'] = True
>
>
>
> c['db_poll_interval'] = 60
>
>
> * Buildmaster02 *
>
> def TestFactory():
>
>     factory = BuildFactory()
>
>     factory.addStep(ShellCommand(command=["ls"]))
>
>     return factory
>
>
>
>>
>
>
> c['builders'] = []
>
> c['builders'].append(
>
>     BuilderConfig(name="Build Test",
>
>       slavenames = winSlaves, slavebuilddir="test",
>
>       factory= TestFactory(),
>
>                   locks = [build_lock.access('exclusive')]))
>
>
>
> c['multiMaster'] = True
>
>
>
> c['db_poll_interval'] = 110
>
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130218/fb36d4be/attachment.html>


More information about the devel mailing list