By cowsuntech
Is it possible to set up non-round robin DNS load balancing?
Desired functionality: *Note Server A is a clone of Server B
Scenario 1 - No fault : [Incoming request] -> [DigitalOcean DNS ] -> [Server A responding]
Scenario 2 - Server A Fault: [Incoming request] -> [DigitalOcean DNS] -> [Server A NOT responding] -> [Server B responds]
Scenario 3 - Server A & Server B Fault [Me] -> [Bar] -> [Beer]
*Note, yes I read this: https://www.digitalocean.com/community/articles/how-to-configure-dns-round-robin-load-balancing-for-high-availability
And the load balancing section here: https://www.digitalocean.com/community/articles/dns-tips-and-tricks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can use HAProxy for load balancing, there are articles about it here: <br>https://digitalocean.com/community/articles/an-introduction-to-haproxy-and-load-balancing-concepts <br>here: <br>https://digitalocean.com/community/articles/how-to-use-haproxy-to-set-up-mysql-load-balancing--3 <br>and here: <br>https://digitalocean.com/community/articles/how-to-use-haproxy-as-a-layer-4-load-balancer-for-wordpress-application-servers-on-ubuntu-14-04 <br> <br>With a single HAProxy node, this woulds still leave a single point of failure. Since DO doesn’t support floating IPs (yet) you can’t scale this up to having 2 geodiverse HAProxy nodes. That said, it’s still an improvement over round robin since an app node is far more likely to go down than a slim, hardened HAProxy node. <br> <br>You can also use nginx for load balancing (this is quite popular these days): <br>https://digitalocean.com/community/articles/how-to-set-up-nginx-load-balancing <br> <br>nginx will have the same issue that HAProxy does, in that you still have a single point of failure. <br> <br>Since DO doesn’t support floating IPs (yet), I’ll mention Amazon’s Route 53 which is capable of intelligent round robin, health checking destination nodes, and geo-diverse hosted DNS, it’s also relatively cheap: <br>http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Tutorials.html <br> <br>You can use Route 53 in conjunction with DO droplets. I believe DO is working on their own implementation of floating IPs to solve the super high availability problem.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.