Bamboo losing Stash authentication - performance hit after restart

We use Bamboo for building and Stash for our Git repository. Over the past month or so we've been seeing increasingly slow performance, especially after server restarts and particularly when listing branches and deployment plans.

At first we thought it was related to the upgrade, the size of the JVM heap or the number of remote agents. It turns out the problem was a little more subtle.

When the server is restarted it loses its Stash authentications, and we see hundreds of errors and a flood of activity as Bamboo re-authenticate. What Bamboo asks for a branch makes matters worse "Save the repository configuration to refresh the authentication details", Instead of using the default setting the branch now has its own, private settings and does its own git request. This means on the order of a hundred git requests every couple minutes. After a while this pushes CPU I/O utilization sky-high and slows the server to a crawl, especially on dynamically-generated content like the afore-mentioned deploy plans and branch listings.

Here are my questions

  1. Is there anyway to automatically detect which branches are using defaults, and which are using this custom/saved setting?
  2. Is there anyway to programmatically get the branches to use the default setting without going through each branch plan by hand?
  3. Is there a way of getting Bamboo to wait after it starts up and send the requests to Stash at some reasonable rate, retry in batches or in some other way avoid the flood of "Errors getting changes for HERP-DIDERP1183-1 This error may have occurred due to an authentication issue with Stash. Save the repository settings to refresh the authentication details.
    (08 Jun 2015, 9:01:36 AM)"

 

3 answers

Note: This is at least tangentially related to : https://answers.atlassian.com/questions/11982626

0 vote

Todd, please contact our Support to work on this issue.

Todd - did you ever find a solution to this?

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 Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,825 views 26 12
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