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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.