I would like to install a second agent on a machine and was wondering if it was possible to do so without running a vmware virtual machine. If it, I would appreciate if you could point me to some directions on how to do so.
Thanks,
Brian
I've raised an issue to improve this situation.
For our setup, we currently run some really big build boxes (24 cores, 24gb of ram, etc)
We actually have 3 agents setup on these boxes since they can handle more than 1 compilation at a time. The key is to give the agents different "homes" to work in, then you can ideally run as many as you want. The way we do it depends differently on if it's windows or linux.
If it's linux (we use centos, but this should be the same for most) we launch our agents from the rc.local file during startup. We have 3 entries in that file for all 3 agents we run. We start our agents this way:
java -Dbamboo.home=/bamboo-agent-home-1/ -jar /bamboo-agent-home-1/atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer &
java -Dbamboo.home=/bamboo-agent-home-2/ -jar /bamboo-agent-home-2/atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer &
java -Dbamboo.home=/bamboo-agent-home-3/ -jar /bamboo-agent-home-3/atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer &
If it's windows, we did things a bit differently. We created a "bat" script that's executed at the system startup that launches all 3 agents. The contents look like this:
rem ## START THE FIRST AGENT ##
start java -Dbamboo.home=C:\\bamboo-agent-home-1\\ -jar C:\\bamboo-agent-home-1\\atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer/
rem ## START THE SECOND AGENT ##
start java -Dbamboo.home=C:\\bamboo-agent-home-2\\ -jar C:\\bamboo-agent-home-2\\atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer/
rem ## START THE THIRD AGENT ##
start java -Dbamboo.home=C:\\bamboo-agent-home-3\\ -jar C:\\bamboo-agent-home-3\\atlassian-bamboo-agent-installer-3.3.2.jar http://host:port/agentServer/
I have no idea what OS you are using or your experience with them but I will go ahead and explain that in the linux version we add the "&" symbol to the end of the line in order to background the task. This prevents the OS halting the script on that line during execution. We just tell it to start and move on with the rest of the commands. In windows, prefixing the command with "start" does the same thing.
Our windows script will also kill the other agents if they happen to be running.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.