Report this

What is the reason for this report?

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

Posted on September 7, 2021

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?



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.