Auto Heal your Azure Web App
This article has been moved to its new location here: https://benperk.github.io/waws/2015/2015-11-auto-heal-your-azure-web-app.html
If your Web App is not behaving like you expect, you might consider implementing Auto Healing. Auto Healing for a Web App lets you take an action when certain events occurr, for example:
- When request count breaches a certain limit
- When requests are running slower that expected
- When an unexpected http status code is received X number of times
- When the process consumes more than expected memory
Here is an article that describes how to configure this manually.
But did you know, you can implement the same via the KUDU console which I speak about here?
Figure 1, auto heal web app via KUDU
Figure 2, azure app service support auto healing kudu
I wrote an article here where I discussed how I manually implemented Auto Healing to resolve an issue I had, let’s do the same using the Mitigate tool.
Figure 3, add new auto healing rule web apps azure
Figure 4, status code auto healing rule web app azure kudu
Figure 5, when rule is triggered, what action to take auto healing web app azure
Figure 6, select the action for the auto healing web app rule
Lastly, press the Update button to apply the rule to your Web App.
Note, if you have multiple Web Apps, you need to apply the rule onto each of the Web Apps and not just on one. All of your Web Apps in the same App Hosting Plan will be on the same VM. This means that all your Web Apps are competing for the same resources.