Warm tip: This article is reproduced from stackoverflow.com, please click
azure azure-web-app-service azure-deployment-slots

App Service production traffic going to stage slot

发布于 2020-03-31 23:00:15

I have an Azure App Service that has a stage slot just for deployment. I got setted 100% traffic to the production slot. But sometimes randomly my production traffic got redirected to the stage slot and all my users went down. After a few minutes the traffic goes back to production slot and everything goes back to normal.

IMG: Requests at stage slot. My last deploy (and stage use) was 1 day before that .

Has anyone been trough something like this?

Questioner
Matheus Oliveira
Viewed
19
AjayKumar-MSFT 2020-01-31 20:01

You can try a couple of things to isolate the issue and re-verify the following configuration:

  1. Has routing Production traffic to the Staging slot been configured either automatically from the Deployment slot blade or manually by adding the ‘x-ms-routing-name’ query parameter in the code?

  2. To confirm that the requests are truly not being routed to the Web App in the Staging slot, kindly configure ‘Failed request tracing’ to validate from the application side that the requests are truly not being routed to the Web App in the Staging slot: https://docs.microsoft.com/azure/app-service/troubleshoot-diagnostic-logs#log-detailed-errors

  3. Just to narrow-down the issue, If feasible, restart the WebApp and analyze to see how long the slot does not receive any traffic? When does the WebApp in the slot starts receiving the requests again? Review and capture the timeframe.