question

caliburn1994 avatar image
0 Votes"
caliburn1994 asked caliburn1994 edited

Azure App Service - how to remove all instances by WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT

Because we have two App Service, one in japan west and one in japan east. So we can afford if one App does not work.
So we want to set WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT to 100. But I find it does not work in the test.

Question 1: Can we remove all instance?
Question 2: what is the max value of WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT?

azure-webappsazure-webapps-availability
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered caliburn1994 edited

Hi @caliburn1994

Question 1: Can we remove all instance?

Unhealthy instances can be replaced and WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT tells the platform how many of those instances can be replaced when the app is determined to be unhealthy.

Question 2: what is the max value of WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT?

You can set the value to a max of 100 which means all worker instances can be replaced.

For more information, please reference https://docs.microsoft.com/en-us/azure/app-service/monitor-instances-health-check#configuration.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @ryanchill

In my test, I set WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT to100
I found App Service will not remove all the instances.

If two instances remain and I let them be deemed unhealthy same time. These two instances will not be removed.
It is the same in the situation when one instance remains.

I am not sure whether it is a bug.

1 Vote 1 ·