[Buildbot-devel] Debugging (presumed) deadlocks

Dustin J. Mitchell dustin at v.igoro.us
Sat Feb 11 16:07:26 UTC 2012


On Tue, Feb 7, 2012 at 3:26 PM, Dmitry Mikhin <dmitry.mikhin at gmail.com> wrote:
> 1. Does it make sense to do explicit locking-based load-balancing of virtual
> and native slaves? Is there a more proper API for doing the same?

We had similar troubles at Zmanda (overloaded ESXi systems when we ran
all hosted slaves at once), and the solution was to subclass
BuildSlave and override canStartBuild, then calculate availability
there.  Note the warning in that method regarding calling
maybeStartBuildsForSlave when the situation changes.

Dustin




More information about the devel mailing list