Question

How does the digital ocean floating IP work? Could it essentially replace the need for a 'failover' Load Balancer?

I was made aware of Digital Ocean’s floating IP’s when I contacted support with regards to setting up a High Availability Load Balancer. I was also referred to this link:

Link

How exactly does the floating IPs work?

This also made me thinking, if floating IPs allow the smooth switching between droplets, for a simple ‘Failover’ system, why do I even need a Load Balancer? Can’t I just use floating IPs pointing to my Production Server and it’s fail over backup?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

With a Load Balancer, you can actually load balance the traffic between your webservers. So that way you can scale up if your traffic grows. Also, the load balancer would do health checks for your servers and forward traffic only to healthy servers.

With a floating IP, one of the servers would be idle all of the time and would only be used when the main server crashes. That way you can’t really scale but you would only have a failover system.

You can use Keepalived for the automatic failover:

https://www.digitalocean.com/community/tutorials/how-to-set-up-highly-available-web-servers-with-keepalived-and-floating-ips-on-ubuntu-14-04

Hope that this helps. Regards, Bobby