Stash high availability

We would like to setup fail over server which takes traffic when main server breaks down. We will attach same NAS storage to both servers and will configure both Stash instances to use the same database so there won't be any problems with inconsistent data. In front of Stash servers there will be a load balancer which will redirect all requests to second machine when first one is down (normally all requests will be served by first server).

Only problem is with Stash itself - it seems that there shouldn't be two (or more) Stash instances running at the same time which operate on the same DB and storage. So both servers should monitor each other and Stash on second server should be started only when first server is unreachable (and stopped on second as soon as first server is back).

Does Stash have solution for this requirement? Is it possible to use Tomcat clustering (Stash uses Tomcat under the hood)?

1 answer

1 accepted

There is no build in solution for redundancy in Stash at this stage. However, we would love to hear more about your requirements. Feel free to contact me directly under jens at

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,927 views 7 10
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