Traffic is routed to the backend with priority 2 instead of 1 in Front Door Classic

HouMez 371 Reputation points
2024-04-22T07:46:35.9533333+00:00

Hello,

I have a Front Door Classic with 2 backends (Webapps) that are set with priorities:
Webapp 1: Priority = 1 , Weight = 100;
Webapp 2: Priority = 2 , Weight = 100;

In the access logs, I see traffic on both webapps, but I want 100% of the traffic to be routed to Webapp 1 as long as Webapp 1 is available.

How can I achieve this?

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

Accepted answer
  1. KapilAnanth-MSFT 46,676 Reputation points Microsoft Employee
    2024-04-29T11:57:11.3866667+00:00

    @HouMez ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to forward 100% of the traffic to Webapp1.

    Your Environment :

    Two Origin Groups:

    • Origin Group 1: Webapp 1 with priority 1 and Webapp 2 with priority 2
    • Origin Group 2: Webapp 2 with priority 1 and Webapp 1 with priority 2

    Two separate Routing Rules:

    • Rule 1: Route traffic to Origin Group 1 for Frontend url A
    • Rule 2: Route traffic to Origin Group 2 for Frontend url B

    Analysis:

    From your configuration,

    Azure Support found that certain POPs marked the origin as unhealthy for a short time.

    This resulted in the discrepancy in the routing decision.You may keep the environment in observation for a while and see if the issue reemerges or not.

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking Accept the answer wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.