Azure frontdoor failover not working

Ashwani Tiwari 21 Reputation points Microsoft Employee
2022-07-06T18:37:45.663+00:00

We have rest apis hosted in Azure app services. we created two instancea and hosted in two different zone. for high availabilityand load balance we are using azure front door.
https://learn.microsoft.com/en-us/azure/frontdoor/quickstart-create-front-door
we followed exact steps mentioned here

Its working fine and distributing load evenly across two backend. when we were testing failover and stopped one backend we started getting 403 intermottently.
it goes away when both app are back.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
576 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 22,776 Reputation points Microsoft Employee
    2022-07-06T22:54:18.2+00:00

    Hello @Ashwani Tiwari , Thank you for reaching out.

    I think this issue might be due to health probe load balancing setting or maybe due to session affinity. As documented here Front Door selects a backend to use within the backend pool. Backend selection is based on several factors, including:

    • The health of each origin, which Front Door monitors by using health probes.
    • The routing method for your origin group.
    • Whether you have enabled session affinity

    Front Door determines backend health as per the Load balancing settings such as Sample size and Successful sample size configured while adding the backend pool. This is the logic on how Front Door determines backend health. You can change these settings and then see if you observe the same issue

    218383-image.png

    Another setting you can check is if session affinity is not enabled. This setting was mentioned in step 5 here from the tutorial.

    218402-image.png

    You can also validate if caching is not enabled for any of the routing rules.

    Hope this helps! Please let me know if the issue still persists. Thank you!


0 additional answers

Sort by: Most helpful