Load balancing between servers in different regions mainly for high availability

October 9, 2018 1.4k views
High Availability Ubuntu

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?

Thanks!

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

Have another answer? Share your knowledge.