By oruesga
About that response by a DO member team:
“If your load balancer went down in the environment described in this article (1 droplet as HAproxy + 2 droplets as webservers), your site would become unavailable. The easiest way to avoid having the load balancer be a single point of failure is to set up active/passive HAProxy pair. This would require two HAProxy servers and a virtual IP that can float between the two servers. The active HAProxy server would handle all of the requests unless it went down, at which point the passive HAProxy server would take over the requests.”
Can I have a virtual IP that can float between the two servers with Digital Ocean? How can I configure this?
I have two droplets with active/passive HAProxy pair + keepalived, but I don’t know how to set up the Virtual IP.
Thanks!
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!
DigitalOcean’s current solution for this is the Floating IP. Using the API you can programmatically move the IP address back and forth between multiple Droplets. With keepalived, you can create a highly available setup where one Droplet will “take” the IP address if the other goes down. For a tutorial that walks you through setting this up, check out:
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.