Project Description
The Team Foundation Build Load Balancer balances builds between the build agents defined in a Team Project reducing the time developer's wait for builds to complete.

What does it do?
  1. On the interval you specify it loops through each build agent for the specified Team Project(s).
  2. If the build agent isn't currently running any builds it:
    1. Retrieves the list of queued builds for the Team Project.
    2. Submits a duplicate build request for the earliest queued build to the idle build agent.
    3. Cancels the earliest queued build from the build agent it was originally queued on.

How do I install and configure it?
  1. Extract the zip file to the directory of your choice.
  2. Create a scheduled task that runs TeamBuildLoadBalancer.exe as often as you'd like the builds load balanced.
  • You need to pass the Team Foundation Server's URL as the first parameter to TeamBuildLoadBalancer.exe, for example, TeamBuildLoadBalancer.exe http://TFSRTM08:8080/.
  • You can optionally pass one or more Team Project names to limit which Team Projects it will load balance, for example, TeamBuildLoadBalancer.exe http://TFSRTM08:8080/ TeamProjectA TeamProjectB. If you don't specify any Team Projects then all Team Projects will be load balanced.
  • You can optionally pass one or more build agents to exclude from load balancing, for example, TeamBuildLoadBalancer.exe http://TFSRTM08:8080/ -ExcludeBuildAgent:MySecretBuildAgent. If you don't specify any build agents to exclude then all build agents will be load balanced.
  • The scheduled task needs to run as a user that is a member of the Build Services security group in each Team Project it will load balance.

How do I troubleshoot it?
  • Any errors should be written to the Application event log.
Last edited Oct 21 2008 at 1:00 AM by wbarthol, version 9

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196