Is it possible to setup a read-only mirror for Stash?

We have several (100s, set to grow as more are migrated from SVN) developers constantly pushing/pulling to/from Stash. On top of this, we have more than 500 plans that have various triggers, most of them poll the repository for changes every minute. This occassionally causes resource issues on the Stash server until the queue of scm tasks is flushed out.

I worked in other orgs in the past that had a Perforce setup with two servers : one main server where devs pushed their changes, and a read-only mirror server that the build servers pointed to, to prevent any resource issues on the main server. Is this scenario possible with Stash?

1 answer

You have two options:

  1. There are some plugins available for mirroring content to another server. All of these work on the source server and automatically push incoming changes to the mirror. (i.e. they produce some load on your Stash instance, but obviously much less than several jobs pulling changes in parallel.)
  2. You can set up an external job (cron, windows task scheduler, or anything similar; I have it in TeamCity) that pulls changes from your Stash server and pushes them to another remote. [I only use this option because I am mirroring stuff from an external place to our Stash, but for you, probably the other option is better.]

In both cases, you can use a simple network share or a bare-bones Git server (e.g. GitStack) for hosting the mirrors.

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...

30,105 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