Using stash across geographical locations

Hi,

We recently started evaluating stash. We are a small company, but very geographically diverse with several different offices on 3 different continents.

With other source control systems, we have always relied on a proxy/replica server at each office with some sort of centralized "master"

How does this fit into the git/stash architecture?

Would we run multiple instances of stash at each site to handle latency issues?

thanks,

Garret

1 answer

1 accepted

Hi Garret,

TLDR; You can absolutely mirror Git/Stash if you require it, but using Git greatly reduces the need to do so.

As you probably know Git is a DVCS (Distributed Version Control System). Being distributed means that a majority of your operations, like commit/log/blame/checkout/branch, are completely local. Unlike in other source control systems, like SVN/Clearcase/TFS, you're not contacting the server to do every-single-thing. This greatly reduces the need for having to rely on proxy/replica servers.

If latency is still causing you frustrations despite all this, there is no technical reason you couldn't run proxy Stash servers. Being a DVCS, with Git it's a simple matter of pushing all changes from the "master" server to each proxy after it receives some new changes. The part that Stash doesn't (yet) support out-of-the-box is a mirror plugin. It would be a relatively trivial task to either write a plugin that listens for push events, or to manually add a post-receive hook to your Git repositories in Stash, and on either event replicate to the proxies (ie push to each of them in turn). There is an issue you can follow/vote on if you're interested:

https://jira.atlassian.com/browse/STASH-2714

I hope this helps answer your question.

Charles

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,769 views 1 5
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