Auto-Healing Windows Azure Web Sites
How many times have you been woken up in the middle of a night for an issue that was simply resolved by restarting your web site? Wouldn’t it be nice to auto detect certain conditions and automatically recover?
With recent updates to Windows Azure Web Sites (WAWS), we have tried to address these questions. There are some new enhancements to “Always ON” feature and with these enhancements comes the ability to automatically recycling the worker process hosting your web application. We call this the “Auto Healing” feature.
You simply define the triggers in the root web.config file of your web site and configure the actions to be performed when these triggers are hit.
Scenarios that can be handled:
Scenario 1 – “Recycling based on Request count”
Scenario 2 – “Recycling based on slow requests”
Scenario 3 – “Logging an event (or recycling) based on HTTP status code(s)”
Scenario 4 – “Taking custom actions (or recycling/logging) based on memory limit”
Learn more about Windows Azure here