Installing mutiple agents on the same host ( Windows)

Follow

Comments

4 comments

  • Avatar
    Mark Richter

    A couple of things to consider:

    1. Install Go Agents on Windows outside of Program Files; anywhere that's not a "protected" part of Windows. I put my agents at C:\AgentXX, where XX is the agent number.
    2. You may need to point GO_AGENT_JAVA_HOME somewhere other than the jre that comes with the Agent software if you are using a different installation of Java. For example I run my agents using a 64-bit version of Oracle Java so I can use 64-bit PowerShell on Windows Server 2008 R2 or Windows Server 2012.
  • Avatar
    Ali

    Just to keep in mind, since we are creating service manually, uninstall of agent (Go Agent 2) wouldn't delete the service. We need to manually delete the service with the following command:

    sc delete GoAgent2

  • Avatar
    Federico Colombo

    I've created a PowerShell script that installs extra agents from an existing working agent on windows.

    It will:

    - Copy the agent to a new folder (excluding data and pipelines folders)

    - Replace/Insert the "set.GO_AGENT_DIR=" on config file

    - Replace the agent service name on agent.cmd net stop

    - Create and start the new windows service

    Here is the script: https://github.com/thepirat000/Shell-Scripts/blob/master/InstallGoAgent.ps1

     

     

  • Avatar
    Mansi Shah

    This forum is available only for reference. Please post your questions to the GoCD OpenSource community

Article is closed for comments.