How can I create an Azure site with a custom health URL?

I have an annoying issue blocking my Azure Website from starting one instance initially. I ran into it up to two instances, and I want to make sure the Azure load balancer understands that one instance is unhealthy and stops serving it until it gets healthy again.

From what I understand, custom health probing is possible for web roles, but not for websites: https://msdn.microsoft.com/en-us/library/azure/jj151530.aspx

How can I let the load balancer know that one of my website instances is unhealthy?

Edit: The functionality doesn't exist in Azure yet, but there is a suggestion to add this capability here .

+3


source to share


1 answer


It looks like you will have to use Azure Traffic Manager. Azure App Service only monitors the health of the worker machines themselves, regardless of the web application code running on them. If your problem is with your application and not the web server itself is unhealthy, this will not help you. that is, if your app only returns 500, it will still look healthy to the app service code and will request a redirect.

Unfortunately, from the Azure App Service window, you are not allowed to configure load balancing on request failures because load balancing only considers the load index of production servers.



See this blog to set up your traffic manager: http://blogs.msdn.com/b/waws/archive/2015/06/01/create-an-azure-web-app-failover-solution-on-a-budget .aspx

+2


source







All Articles