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

1 vote
Accepted answer

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
Jim Redmond Atlassian Team May 30, 2017

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

402 views 5 9
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