I have my web app which using s1 plan and I have autoscaling rules
So now the problem is each time app is scaled OUT my app is basically down for good 5-10 minutes.
Long time ago i started on this problem and added
<applicationInitialization doAppInitAfterRestart="true" skipManagedModules="false">
<add initializationPage="/api/warmup" />
</applicationInitialization>
So this fixed my problem so when i do new deployment and Swap slots app is alive during that.
So facing issues with scaling i read that app service has now health status
But that did not help me too, but i noticed that since i have url rewrite to redirect http -> https, so i thought oh yes thats my problem and i fixed that few days ago, but again today my app died again and I am really disappointed since i dont have any other ideas what is wrong.
<rule name="No redirect on warmup request (request from localhost with warmup user agent)"
stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_URI}" pattern="^/api/warmup" />
<add input="{REQUEST_URI}" pattern="^/health-status" />
</conditions>
<action type="Rewrite" url="{URL}" />
</rule>
Only one thing which helps is scale up to S2 so each node starts faster but again then i will need to pay more for those resources.....