Health Check not replacing the instance

Preetham Gowda 0 Reputation points
2024-09-23T05:22:18.3133333+00:00

Hello,

I am new to the Microsoft Azure and experimenting few things,

We have S3 Standard App service plan(Dedicated App Service plan). We have manual scaling of 1 instance( I know we need more instances for fault tolerance but for now assume we have 1 instance).

We have 9 Azure functions and 2 Webapps. None of the apps have health check enabled apart from 1 function.

We have configured health check endpoint and enabled health check on one function and this function becomes unhealthy after sometime and we can see the health status has unhealthy and since we have 1 instance, it actually needs to replace the instance after 1 hour of continuous unhealthy pings. I don't see the instance getting replaced. What may be the reason for this?? (I know max of 1 instance can be replaced and 3 in 1 day but nothing was replaced as this is the first time I am enabling the health check)

I tried enabling the auto heal rule(CollectAnalyseKill) which terminates the w3wp.exe process once the rule threshold is met and starts a new w3wp.exe(function). - This is like restart of a function is what I felt but it doesn't replace the whole instance(stopping all the functions and starting all the functions on a new instance)

What is the use of health check without auto heal enabled? Does this come into effect only if we have more than 1 instance in our App Service plan?

Microsoft portal says

"Your site has a single instance which will not be removed if it becomes unhealthy. However, after one hour of continuous unhealthy pings, the instance will be replaced. You can still set up Azure Monitor Alerts based on the health status."

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,285 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,029 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,808 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.