Infrastructure

Load Balancing Builds between Build Agents

When builds are queued they are queued on a specific build agent selected by the person queuing the build. They can scroll through each build agent to find the one with the shortest queue, but with a large number of build agents this can take time.

A project has been published on CodePlex that can move builds from one build agent to an idle build agent to make the best use of the available build agents. This project consists of a very simple command-line utility built using the Team Build API discussed in Chapter 11, called TeamBuildLoadBalancer.exe, which takes the Team Foundation Server URL and an optional list of Team Projects as command-line arguments.

To set up the Team Foundation Build ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.