Build Agent Priority

Hi!

I setup my build machine as one of 3 build agents we currently have. I would like my build agent to get involved only when build queue is not empty, i.e. handle the rush hour. Unfortunately my dev machine's is the fastest by TC's CPU rating and it always picks up build requests. This gets in the way of my work. Is there any way to tweak the priority of my agent or lower CPU rating of my machine? Thanks.

Vadim.

3 comments
Comment actions Permalink

TeamCity chooses the fastest agent based on history. CPU rating plays some role too, but only in cases when history is empty or if agents have comparable average build duration time. I think the only way to achieve what you want is to write plugin for TeamCity. Such plugin can disable developers agents and monitor build queue. If queue size become large plugin can enable agents, wait for build queue size to reduce and disable agents again. If you choose to write a plugin take a look here: http://www.jetbrains.net/confluence/display/TCD4/Extending+TeamCity

0
Comment actions Permalink

vpesochi schrieb:

Hi!


I setup my build machine as one of 3 build agents we currently have. I would like my build agent to get involved only when build queue is not empty, i.e. handle the rush hour. Unfortunately my dev machine's is the fastest by TC's CPU rating and it always picks up build requests. This gets in the way of my work. Is there any way to tweak the priority of my agent or lower CPU rating of my machine? Thanks.


Vadim.

There are some feature requests in direction of "scheduled agent working hours", you might want to vote for them.

0
Comment actions Permalink

For example this request is rather popular: http://www.jetbrains.net/tracker/issue2/TW-1645

0

Please sign in to leave a comment.