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

27,477 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