What is best way to implement autoheal for azure linux based web app services?

Deepak Bansal 1 Reputation point
2020-08-10T01:46:04.31+00:00

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.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,930 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,366 Reputation points
    2020-08-10T15:28:17.787+00:00

    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


  2. SnehaAgrawal-MSFT 18,366 Reputation points
    2020-08-12T16:04:31.073+00:00

    Thanks for reply! You may try configuring Auto heal by:

    1. 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
      1. 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.

    0 comments No comments

  3. Puneet Gupta 96 Reputation points Microsoft Employee
    2021-04-26T11:35:51.777+00:00
    0 comments No comments