Question about cloud profile (VCenter) and buildagent license

Hello, I'm experimenting with cloud profiles (VCenter).  If I set my buildagent to start/stop (as opposed to clone), it doesn't appear to free the license up.  The buildagent will show as disconnected in the UI.

When cloning/destroying buildagents, the license gets freed up and can be used on a different buildagent.  Is this functionality not available when start/stopping buildagents?  If I have 10 build agent licenses, and 15 build agents, I'd like to be able to have 10 running, but at certain times of day shut 5 down and start up the other 5.  This doesn't seem possible unless I'm missing something?  Thanks

 

Steve

0
1 comment

Hello Steve,

As stated in TeamCity's documentation:

The number of agent licenses limits the number of agents which can be authorized in TeamCity. The license keys are not bound to specific agents, they just limit the maximum number of functional agents. (...)
When there are more authorized agents than the valid agent licenses available, the server stops to start any builds and displays a warning message to all users in the web browser.

As such, you would probably need to authorize / unauthorize the build agents on shutdown / startup. You could try to do it automatically using the REST API:

https://www.jetbrains.com/help/teamcity/rest/manage-agents.html#Authorize%2FUnauthorize+Agent

Thank you,

Guilherme

0

Please sign in to leave a comment.