Thanks for asking question! You may try setting up a Health check page in the application and then use the newly introduced Diagnostic Settings feature (which basically pushes telemetry to Azure Monitor) to send HTTPLogs to Azure Monitor. In Azure Monitor an alert rule can be setup that triggers a Restart API if a certain threshold has been crossed for HTTP failures for that healthcheck endpoint.
Please note that Azure Monitor Integration is in Preview
What is best way to implement autoheal for azure linux based web app services?
I want to implement azure auto healing for our Linux based web app services. As there does not seems to be this capability available for Linux based web app services, could you please share the recommended way to implement? Sample scenario- my web app services is running on multiple instances and one of the instances started taking longer to respond or throwing 5xx errors, I need to recycle the app pool of respective service instance automatically.
3 answers
Sort by: Most helpful
-
SnehaAgrawal-MSFT 18,366 Reputation points
2020-08-10T15:28:17.787+00:00 -
SnehaAgrawal-MSFT 18,366 Reputation points
2020-08-12T16:04:31.073+00:00 Thanks for reply! You may try configuring Auto heal by:
- Using an API and use Application Insight SDK to monitor your application and then perform restart application based on your
requirement. Please check following URL’s for your reference purpose: https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core- Using Azure function and perform ping test and then restart the server on a non HTTP 200 response.
To add to this, I have posted your requirement related to Autoheal feature for Linux servers internally and our Product Group knows about this. Also, I would request you to share your feedback for the same on below link which is actively monitored by Product Group.
- Using an API and use Application Insight SDK to monitor your application and then perform restart application based on your
-
Puneet Gupta 96 Reputation points Microsoft Employee
2021-04-26T11:35:51.777+00:00 AutoHeal for Linux Web Apps is now available. More details at https://azure.github.io/AppService/2021/04/21/Announcing-Autoheal-for-Azure-App-Service-Linux.html