Forum Discussion

user6868's avatar
user6868
Copper Contributor
Feb 27, 2020
Solved

Problem with custom warmup in app service

I'm trying to add a custom page for warmup so that after swapping slots in azure dev ops release pipeline, the application from the secondary slot will be warmed up.   Web.config:   ... <applica...
  • motasem13's avatar
    Dec 03, 2020

    user6868 I'm guessing that the request is timing out

     

    During the swap operation the site in the staging slot is warmed up by making an HTTP request to its root directory.

    By default the swap will proceed as long as the site responds with any status code.

    Utilizing this, could help to avoid cold starts, undesired downtimes or high latency situations.

     

    However, if you prefer the swap to not proceed if the application fails to warm up then you can configure it by using these app settings:

     

    • WEBSITE_SWAP_WARMUP_PING_PATH - The path to make the warm up request to (default value - “/”)
    • WEBSITE_SWAP_WARMUP_PING_STATUSES - Expected HTTP response codes for the warm-up operation

Resources