Forum Discussion
Problem with custom warmup in app service
- 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
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