gpt4 book ai didi

teamcity - 如何在 TeamCity 中设置构建代理优先级?

转载 作者:行者123 更新时间:2023-12-02 02:53:21 24 4
gpt4 key购买 nike

我有两个代理可以构建我的配置。我设置了两个,因为我有时需要同时进行两个构建。

如何设置构建代理优先级以强制 TeamCity 选择特定代理(如果两者都空闲且可用)?

现在它随机或通过一些未知因素选择代理......

最佳答案

您可以过滤使用哪些代理,但我不确定您是否可以指定代理使用哪个空闲。

如果您担心 TeamCity 使用最快的代理,它应该会自动执行此操作。

Teamcity documentation指出以下内容。

When there are several idle agents that can run a queued build, TeamCity tries to select the fastest one as follows:

  1. If no builds have previously run on agents, the CPU rank is used to select an agent.

  2. If builds have previously run on agents, the estimated build duration for the given build configuration is used to select an agent. The estimate is made based on the heuristics of the latest builds in the history of the build configuration; for estimating, the execution time of the more recent builds has more weight than that of the earlier builds. Personal and canceled builds are not taken into account, neither are any individual builds whose duration differs significantly from the rest of the builds for this build configuration.

关于teamcity - 如何在 TeamCity 中设置构建代理优先级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32437761/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com