Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GKMelbo's avatar

Two Load Balancers for redundancy

Hi, I've set up two load balancers with Laravel Forge and was wondering if there's a way for both of them to work together for redundancy? I know you can do that with DigitalOceans Load Balancers. Any help is much appreciated!

0 likes
3 replies
shez1983's avatar

good question - i have been meaning to do this but no idea how to start.

I have been told AMAZON has its route system (not sure what the fancy word for it is) but that has 'redundancy'.

why not use DO load balance? one good thing about it is that its a flat rate of 20$ & has some advanced options wheras provisioning with forge its like any server..

knox's avatar

One way you could is what's called DNS failover, see https://dnsmadeeasy.com/services/dnsfailover/ for an example or http://help.dnsmadeeasy.com/dns-failover/configure-dns-failover/configure-dns-failover-round-robin/ for a tutorial.

The idea is pretty simple, you can duplicate your DNS records and point to each load balancer, in the event one load balancer is down the other would be available for some time.

I've only come close to setting up DNS failover but that's where I'd look next in your situation. Always remember to test your redundancy methods -- meaning bring load balancer down #1 on your own and be 100% certain #2 picks up where it left off.

GKMelbo's avatar

@shez1983 The application is still very new, so two load balancers with DO would cost me 40$ a month. So I was hoping Forge could help with cutting the costs to a minimum.

@knox Thanks! Seems to be a good next step.

Thanks both of you!

Please or to participate in this conversation.