Can IsFallback be used with Weighted Algorithm ?

I have 3 target servers say - t1, t2 and t3 . Below is a simple loadbalancer config for the same :

<LoadBalancer>
<Algorithm>Weighted</Algorithm>
<Server name="t1">
<Weight>1</Weight>
</Server>
<Server name="t2">
<Weight>1</Weight>
</Server>
<Server name="t3">
<IsFallback>true</IsFallback>
</Server>
<ServerUnhealthyResponse>
<ResponseCode>204</ResponseCode>
<ResponseCode>400</ResponseCode>
<ResponseCode>500</ResponseCode>
<ResponseCode>502</ResponseCode>
<ResponseCode>503</ResponseCode>
</ServerUnhealthyResponse>
</LoadBalancer>

With the above config, whenever there is a failure at t1  with the above mentioned response codes it invokes t2. Ideally it should invoke t3 in such cases. Any idea why is it happening like this ?

Solved Solved
0 1 63
1 ACCEPTED SOLUTION

I just realised that fallback is only triggered when all the target servers in the loadbalancer are identified as unavailable.


Ref : https://docs.apigee.com/api-platform/deploy/load-balancing-across-backend-servers#settingloadbalance...

 

View solution in original post

1 REPLY 1

I just realised that fallback is only triggered when all the target servers in the loadbalancer are identified as unavailable.


Ref : https://docs.apigee.com/api-platform/deploy/load-balancing-across-backend-servers#settingloadbalance...