Can I use just one URL for bit bucket but have it route to the closest available server?

I am setting up Bit Bucket Data Centre. I am setting it up for two sites, one in Dublin, Ireland the other in Kuala Lumpar, Malaysia. Kuala Lumpar will have the mirror instance.

I would like to have one URL for bitbucket, e.g. bitbucket.mycompany.com, but instead I think we will have to use something like bitbucket-dub.mycompany.com and bitbucket-kl.mycompany.com

It's a bit clunky. It would be nice if you could use one name and have the request routed to the closest server.

Does anyone know if that's possible?

2 answers

1 accepted

There are several things to consider:

  • Only the primary has a GUI, so if your users want to do any work in the GUI (such as working with pull requests) it doesn't help if the name resolves to the mirror instance
  • Up until Bitbucket Server 5.1 the mirror is read-only, so if the name resolves to the mirror and the user is trying to push the push will fail

 

I should have watched the webinar! I always assumed that the mirror had a GUI.

1 vote

It is possible, and the easiest mechanism would be DNS. The specific details of the implementation will vary based on what you're using for your internal DNS, but the terms to look for in your DNS server documentation are "anycast" or "geolocation".

Thanks Jim - will give it a try.

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,767 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