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
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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