Skip to content Skip to sidebar Skip to footer

What Algorithm Does Buildbot Use To Assign Builders To Slaves?

I have a buildbot with some builders and two slave machines. Some of the builders can run on one slave, and some of them can run on both machines. What algorithm will buildbot use

Solution 1:

First it gets a list of all the slaves attached to that builder. Then it picks one at random. If the slave is already running more than slave.max_builds builds, it picks another.

You can override the nextSlave method on the Builder to change the way slaves are chosen. The arguments passed to your function will be the Builder object, and a list of buildbot.buildslave.BuildSlave objects. You have to return one of the items of the latter list, or None.

Post a Comment for "What Algorithm Does Buildbot Use To Assign Builders To Slaves?"