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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

Todd - did you ever find a solution to this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,345 views 8 11
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