$BAMBOO_HOME over network shared

Have anyone set $BAMBOO_HOME or at least the bamboo-home directory over a network storage, like NFS?

Our Idea is to set BAMBOO in a HA environment but instead of syncing the Bamboo home directory we would like to have it mounted using a SAN or NAS, I know there is not official information about BAMBOO on HA, but at least someone have tried the bamboo-home over network ?

Thanks

6 answers

1 accepted

2 votes

Major part of bamboo-home/xml-data is a build directory. I think when you decide to move BAMBOO_HOME to NFS you should keep this directory separately:

  • this can be configured via $BAMBOO_HOME/bamboo.cfg.xml (property buildWorkingDir)
  • this directory holds working areas for each of your plans and thus can be safely reverted from backup or even completely cleaned before Bamboo restart - unless you're using some non-standard build configuration your source files will be simply checked out from repository from scratch
  • if you decide to hold buildWorkingDir as a local filesystem directory it will have to has the same path on all machines in your HA cluster because configuration is shared
  • buildWorkingDir is also the place where most of the IO activity happens: repository checkouts building your plans etc. leaving it on the local filesystem will give you high performance and keeping everything else on NFS will give you possibility to quickly switch server that will run the service

Hi Krystian

Thanks, this is very usefull

Regards

2 votes

If you want to use NFS for this, make sure you use NFS4.

I believe if that share will have 10000+ files it will work really slowly. It should be ok with less files. At least this was the case with other systems I tried, but I never tried Bamboo this way.

Hi Andris

Thanks, that's really a helpful info, anything that help us make a desition.

Could you please share which system and network storage did you use?

Regards

I tried email server and SVN server. Network server that I used was a simple custom Linux box (NFS share) with 1Gbps network interface. If you have better hardware it may work better for you.

Hi Andris

Thanks, that's really a helpful info, anything that help us make a desition.

Regards

0 vote

I wouldn't... The git operations will hurt a lot... Note that there are host specific info in the files as well.

I wrote up a blog post once for Nick Muldoon ( http://www.nicholasmuldoon.com/2013/07/bamboo-in-a-high-availability-configuration/) explaining how we had it configured at a previous work place.

Daniel

I have already read that article, it is very well documented, and of course having bamboo-home localy on each instance looks like a good solution, drbd shoud do the work of replicating.

I was wondering if someone have done this before so they share their experience.

Daniel, for your multiple instances of Bamboo, did you needed a new license for each? and a different <property name="serverId">XXXX-XXXX-XXXX-XXXX</property>

Each active/passive cluster required a new license. (the passive one obviously shared the same one as the active instance). Does that answer your question?

thanks all for the reply

We are actually using bamboo for our builds, and here is some information that might be relevant

[root@bamboo ]# find ./bamboo-home/artifacts/ -type f |wc -l
12025
[root@bamboo ]# find ./bamboo-home/xml-data/ -type f |wc -l
581462

[root@bamboo ]# du -hs ./bamboo-home/*
100G    ./bamboo-home/artifacts
4.0K    ./bamboo-home/attachments
4.0K    ./bamboo-home/backups
4.0K    ./bamboo-home/bamboo.cfg.xml
4.0K    ./bamboo-home/bamboo-mail.cfg.xml
44M     ./bamboo-home/bundled-plugins
357M    ./bamboo-home/caches
18M     ./bamboo-home/index
7.6M    ./bamboo-home/jms-store
112M    ./bamboo-home/logs
26M     ./bamboo-home/plugins
22M     ./bamboo-home/temp
4.0K    ./bamboo-home/templates
208G    ./bamboo-home/xml-data

and of course it will grow in time, it is a considerable amount of files.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

445 views 83 11
Join discussion

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