By azrinsani
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:
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!
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:
Hope that this helps. Regards, Bobby
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.