在同一台计算机上运行多个 TeamCity 代理? [英] Running multiple TeamCity Agents on the same computer?

查看:23
本文介绍了在同一台计算机上运行多个 TeamCity 代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几台构建机器,每台机器运行一个 TeamCity 构建代理.每台机器都非常强大,我们希望在同一台机器上运行多个构建代理.

We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine.

这可能吗,不使用虚拟化?TeamCity 是否有支持此功能的优质替代品?

Is this possible, without using virtualization? Are there quality alternatives to TeamCity that support this?

推荐答案

是的,有可能:

可以在一台机器上安装多个代理.它们作为独立的代理运行,TeamCity 作为不同的代理与它们一起工作,而不是利用它们共享同一台机器的事实.安装一个代理后,您可以再安装一个代理,前提是满足以下条件:

Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can install additional one, providing the following conditions are met:

  • 代理安装在单独的目录中
  • 他们有独特的工作和临时目录
  • buildAgent.properties 被配置为具有不同的 name 和 ownPort 属性值

确保没有指定绝对检出目录的构建配置(或者,确保此类构建配置启用了干净检出"选项并且它们不能并行运行).

Make sure, there are no build configurations that have absolute checkout directory specified (alternatively, make sure such build configurations have "clean checkout" option enabled and they cannot be run in parallel).

在Windows下,要安装额外的代理作为服务,修改[agent dir]launcherconfwrapper.conf将属性更改为在计算机内具有不同的名称:

Under Windows, to install additional agents as services, modify [agent dir]launcherconfwrapper.conf to change the properties to have distinct name within the computer:

  • wrapper.console.title
  • wrapper.ntservice.name
  • wrapper.ntservice.displayname
  • wrapper.ntservice.description

这篇关于在同一台计算机上运行多个 TeamCity 代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆