Load balancing between servers in different regions mainly for high availability

Posted October 9, 2018 6.5k views
UbuntuHigh Availability

Hello Community!

We have set up new droplets and a load balancer.

Our main objective is to get syncing between two servers in different locations so that if one goes down the other one stays up and handles everything.

So we started doing our app on Droplet 1 (France)
And now we added These two:
Droplet 2 : for database (Amsterdam)
Droplet 3 : For copy of the system
Load Balancer 1 For balancing between Droplet 1 and 3

However, when adding droplets to the load balancer, the droplet 1 from France is not appearing. Why is that. The whole idea is to be able to switch traffic to another region if the server is overloaded or if there is some form of catastrophe in one of the halls.

  1. How can we get load balancing to work between Droplet 1 and 3?

Question two is regarding the fact that with the above setup, if Amsterdam goes down, that would include the database rendering the France server useless.

2.How could we also sync the database so both servers have an updated database in case one of the server halls go down?
Do you maybe have or know of any solutions that could help us do this?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

You can’t do cross data center load balancing or failover on DO. The LB feature is within the same data center only (ex: amsterdam1). For this I’ve used external solutions like GCP’s Anycast LB or AWS load balancing.

That said, if you can replicate the DB across datacenters, you can use DNS-based load-balancing and failover. You could also use a Proxy such as Fastly, or Cloudflare for the same purpose.

The original question is still valid, and should not be limited by DO’s load-balancing and failover capabilities