[Buildbot-devel] Buildbot cannot use all build slaves

Mike Sorrenti mikesorrenti at gmail.com
Thu Jan 3 18:18:31 UTC 2013


Chen,

I would recommend looking into the Builder's nextSlave attribute. You'll
find that the master chooses a slave at random if a callable isn't
provided, see
https://github.com/buildbot/buildbot/blob/buildbot-0.8.7/master/buildbot/process/builder.py#L584.
This random choice may sometimes mean multiple builds on some slaves while
others sit idle.

Best,
Mike


On Wed, Jan 2, 2013 at 9:08 PM, Chen Yingliu <chenyingliu at gmail.com> wrote:

> Thanks for the hint. Let me try to see if disable merging
> request alleviate the problem.
>
>
> On Wed, Jan 2, 2013 at 7:38 PM, Dustin J. Mitchell <dustin at v.igoro.us>wrote:
>
>> On Wed, Jan 2, 2013 at 8:31 PM, Chen Yingliu <chenyingliu at gmail.com>
>> wrote:
>> > One weird thing is BuildRequestDistributor._activityLoop() take more
>> than
>> > 100 seconds, I suppose this should run fast ? However I don't quite get
>> the
>> > buildbot scheduling logic even after read the code for a while. Any one
>> can
>> > help figure out the reason why _activityLoop() took more than 100
>> seconds
>> > and why not all build slave are used?
>>
>> The _activityLoop loops until the queue of pending builders is empty.
>> If build requests are arriving quickly enough, the 'while 1' loop it
>> contains will keep looping.  So that metric isn't the most helpful.
>>
>> Do you have mergeRequests enabled?  That's a particularly slow
>> operation, especially if the request queues are long.
>>
>> Dustin
>>
>
>
>
> --
> Chen Yingliu
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130103/c73a9659/attachment.html>


More information about the devel mailing list