Report this

What is the reason for this report?

How Can I Setup Single Point Of Failure For Load Balancer

Posted on November 17, 2021

Hi I am having an application where the servers are load balanced. Now the problem is if the load balancer for some reasons stops then my whole application stops.

How can I have a backup load balancer so that if one stops other kicks in right away and notify me about the other load balancer.

Also what will happen for the sticky sessions. Is there a way one load balancer can keep syncing all the sticky sessions and other settings made to main load balancer



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.

Hello,

In case that you are using a DigitalOcean Managed Load Balancer, adding a completely separate Load Balancer should not be needed, but instead, you can add additional nodes to this Load Balancer in order to increase the number of simultaneous connections and requests per second:

https://docs.digitalocean.com/products/networking/load-balancers/how-to/scale/

In case that you are running your own unmanaged load balancer with HAProxy, you could follow the steps here on how to configure a high availability setup using Heartbeat and a floating IP address:

https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-heartbeat-and-floating-ips-on-ubuntu-16-04

Best, 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.