Loadbalancing setup not working as intended

Hey Guys,

I’m trying to setup a failover scenario with the loadbalancing within Cloudflare. Somehow it didn’t work properly. I tested this by forcing a 404 on the LIVE site. I expected an automatic switch to the failover site, but that doesn’t happen at all. Here is what I configured in Cloudflare:

https://sendspark.com/share/2ojmtvu8t9fuqm1mylxtmivn1tbubb0n

I really would love to have some advice in this particular case.

Cheers,
Jordy

A 404 just means a resource requested did not exist. Those are very common. What in your configuration leads you to expect a 404 to fail over to the other server?

1 Like

Hey, thanks for your quick reply!

I forced the 404 on LIVE by changing index.php to _index.php (WordPress) which results in a 404.

Load Balancers don’t fail over just because someone encountered a 404 error.

2 Likes

What would you recommend?

A 404 error is a resource doesn’t exist. There is no reason for a load balancer to suppose that a resource that doesn’t exist on originA exists on originB.

I guess you could set up a health monitor for that on a specific resource but probably not a design paradigm I’d have chosen.

1 Like

Thanks all for your assistance so far. Much appreciated!

So, would it be an idea to force a - let’s say 500 error to see if everything is working as intended?

I forced a 500 error last week but it is still not automatically switch to failover.

Is there someone whos willing to assist? I’m even willing to pay for it.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.