Questions related related to workings of Front door

Tricky Clown 0 Reputation points
2025-03-21T02:39:14.6433333+00:00

Hello there, I wanted to know when Frontdoor needs to recognize a healthy deployment in a failover scenario.

I have two origins defined within an origin group. For context, Origin A has a priority of 1 and a weight of 1000, and Origin B has a priority of 2 and a weight of 1000.

Now I have three questions:

  1. How long does Frontdoor take to failover to origin B if origin A for some reason goes down?
  2. How long would Frontdoor take to fail back to origin A once it is in healthy status?
  3. If the duration required to fail back to origin A is a lot, then what would happen if origin B goes down in between? Will there be an outage in the application or will origin A pick it up?

I've gone through the docs and couldn't find any details on these and therefore, any assistance will be greatly appreciated.

Thanks!

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

1 answer

Sort by: Most helpful
  1. Luis Arias 8,441 Reputation points
    2025-03-21T08:29:39.6833333+00:00

    Hi Tricky,

    Welcome to the Q&A,Let me try to addressing your questions about Azure Front Door's failover and failback behavior in scenarios where two origins are set up with different priorities, one at a time.:

    Considering the following configuration:

    • Origin A has a priority of 1 and a weight of 1000
    • Origin B has a priority of 2 and a weight of 1000.
    • T = 0s, T = 30s, T = 60s for default settings per probe.

    How long does Frontdoor take to failover to origin B if origin A for some reason goes down? : Azure Front Door monitors the health of origins through health probes. The time to failover to Origin B depends on the probe frequency and timeout configuration. By default, health probes run every 30 seconds, with a timeout of 5 seconds. If three consecutive health probes fail, an origin is marked unhealthy. Based on the default settings, failover to Origin B could take up to 90 seconds.

    User's image

    How long would Frontdoor take to fail back to origin A once it is in healthy status?: When Origin A becomes healthy again, Front Door detects this through the same health probe mechanism. It requires three consecutive successful probes to mark Origin A as healthy and start routing traffic back. Under default settings, this process might also take approximately 90 seconds.

    User's image

    If the duration required to fail back to origin A is a lot, then what would happen if origin B goes down in between? Will there be an outage in the application or will origin A pick it up?: If Origin B becomes unhealthy before Origin A is marked healthy, there may be a temporary outage if neither origin is healthy. However, traffic will seamlessly fail back to Origin A if it recovers during this time.

    User's image

    Here is a bonus from Copilot about time out:

    • The system does not perform additional checks within the same 30-second interval. Once the third probe fails (at T = 65s, considering a 5-second timeout), the system immediately marks the origin as unhealthy. The health probe mechanism strictly adheres to the configured interval, and additional probes are not conducted inside that interval window. In other words: Health probes are initiated strictly at regular intervals (e.g., T = 0s, T = 30s, T = 60s for default settings). After the third consecutive failed probe, the system marks the origin as unhealthy immediately at the end of the timeout for the third probe (in this case, T = 65s).

    Conclusion: It’s a good idea to run some tests to see how this really works and nail down the actual timings since things like network latency can change the results.

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    0 comments No comments

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.