Running two Bamboo remote agents on same server as windows service?

I want to have two agents running as a windows service on the same server. Can I rename the existing service of the first agent and change its name in the "Edit Details" section of administration and the install second agent as windows service so it picks up the default names? Is there a better way to do this or am I on the right path. Wasn't sure about the service name change but I know the second agent install would probably fail if a service of the same name already existed.

1 answer

1 accepted

You can have multiple agents running as Windows Services on the same Windows PC. I have 5 or 6 running on one just fine. In general the best practices I've found for installing multiple agents include the following from my own personal notes :

When installing the agents, ensure you use the command line switch -Dbamboo.home=DIR where DIR is the unique directory where you are installing the individual agents.

Additionally, if you are installing multiple agents as Windows Services you need to edit the names or the services after installing each service.

The agent configuration is mostly contained in the file <bamboo.home>/conf/wrapper.conf

In the wrapper.conf file the very bottom defines the names of the NT services that were installed.

If you have 1 windows agent installed, use the BAT files that are part of the agent to UNINSTALL the agent service, then edit the fields "wrapper.ntservice.name" and "wrapper.ntservice.displayname" to use numbers for example :

Change :

# Name of the service
wrapper.ntservice.name=bamboo

# Display name of the service
wrapper.ntservice.displayname=Bamboo

To Something like this :

# Name of the service
wrapper.ntservice.name=bambooagent01

# Display name of the service
wrapper.ntservice.displayname=Bamboo Agent 01

Then save and use the BAT file to reinstall as a service. Then follow the standard installation steps for installing a second windows agent and repeat the steps above to then uninstall the agent, rename the NT service parameters, and REINSTALL the second service (and 3rd and 4th, etc.)

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,077 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot