简体   繁体   English

TFS2017 构建代理代理设置

[英]TFS2017 build agents proxy settings

After upgrading our TFS2015 ecosystem to TFS2017 RTM I noticed that the build times had increased significantly.将我们的 TFS2015 生态系统升级到 TFS2017 RTM 后,我注意到构建时间显着增加。 Closer inspection revealed that the get operation times were where the additional time was coming from (40 minutes longer)仔细检查发现 get 操作时间是额外时间的来源(40 分钟以上)

Our site is across the Atlantic to the application tier so we use a TFS Proxy server for the file downloads.我们的站点跨越大西洋到达应用层,因此我们使用 TFS 代理服务器进行文件下载。 I assumed initially that the TFS2015 proxy wasn't playing nice with the TFS2017 app tier so I had it reinstalled as a TFS2017 proxy and purged the file cache.我最初认为 TFS2015 代理与 TFS2017 应用程序层的配合不佳,因此我将其重新安装为 TFS2017 代理并清除了文件缓存。

I watched the proxy file cache and statistics but observed no changes - implying that the proxy isn't being used.我查看了代理文件缓存和统计信息,但没有观察到任何变化——这意味着没有使用代理。

The issue is that the TFS2017 agents don't use the same proxy settings as the TFS2015 agents.问题在于 TFS2017 代理不使用与 TFS2015 代理相同的代理设置。 As the agents had "auto update" enabled, they became TFS2017 agents automatically shortly after the upgrade.由于代理启用了“自动更新”,它们在升级后不久自动成为 TFS2017 代理。

The TFS2015 agents read their proxy settings from: HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0\\TeamFoundation\\SourceControl\\Proxy TFS2015 代理从以下位置读取其代理设置:HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0\\TeamFoundation\\SourceControl\\Proxy

Whereas the TFS2017 agents read their proxy settings from: HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\15.0\\TeamFoundation\\SourceControl\\Proxy而 TFS2017 代理从以下位置读取其代理设置:HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\15.0\\TeamFoundation\\SourceControl\\Proxy

Putting the proxy settings into the 15.0 area resulted in the proxy's file cache repopulating and a gradual reduction in fetch times as the cache hit ratio increased.将代理设置放入 15.0 区域会导致代理的文件缓存重新填充,并且随着缓存命中率的增加,获取时间逐渐减少。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM