Why to use Load Balancer with Floating IP?

Posted December 19, 2015 10.7k views
Server OptimizationLoad BalancingHigh Availability

I can notice every tutorial for using Floating IP is explained through this schematic:

I’m trying to understand why we need to use Load Balancers in combination with Floating IP ? Why not to use only pool of App servers with Floating IP (without Load Banalcers) ? When some server is down, the floating IP will be assigned to other server from the pool and the application will be still available.


  • I have this very same question as well. I don’t understand the need for servers with HA Proxy installed. What if your app servers have a higher bw than the smaller low end servers with HA Proxy? The HA servers would reach their limit of bw faster.

  • Without Load Balancers, you cannot use multiple App servers.
    Floating IP is not a dynamic switch mechanism (aka load balancer), instead it resolves biggest problem Digital Ocean had - lack of ability to have static yet dynamic IP’s in DNS settings.
    With it you don’t need services like CloudFlare to manage DNS.

    Unfortunately, there’s a catch. One droplet can support just one Floating IP. It means you cannot replace broken server with other LB server assigned to other Floating IP. It means only way to have proper redundancy is to have idle spare Droplets . If you will use 3 Floating IP’s you need to have 3 LB servers + at least one spare.

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.

Submit an Answer
1 answer

I want to implement redundant HA Proxy for Mysql Master/master configuration. As far as I know Floating IP are public, is there any way to get a private floating IP ?. For security and performance reason I don’t think that using public IP for HA Proxy in this Scenario (webservers communicating internally with database servers). Do you know any solution for this?

  • I am interested to know too! @rrojasa have you figure this part out?

    • Hi,

      Not resolved the issue yet. I also created a DOLoad Balancer and applied DO Firewall rules to my backend DB servers. Firewall works on top of droplets but DO Load Balancer can’t be protected behind the DO Firewall , so Mysql Port is open to the internet.