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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,201 views 8 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