Does an Azure Web App care if its instances are healthy/unhealthy?

廉价感情. 提交于 2019-12-20 03:53:14

问题


If I deploy a web app (formerly known as an Azure WebSite) to an App Hosting Plan in Azure with a couple of instances (scale = 2) will the load balancer in front of the instances care if any of the instances is unhealthy?

I'm troubleshooting an issue that sometimes causes my site to return an http 503 ~50% of the time. My thinking here is that one of two of my instances has failed but the load balancer hasn't noticed.

If the load balancer does care, what does it look for? I can't find anyway to specify a ping url, for instance.

Note: this question has nothing to do with Traffic Manager.


回答1:


Yes, Azure Web Apps monitors the health of the workers by making internal requests to it and verifying that they're healthy.

However, we don't check status codes that the web app returns to user requests (like 500, etc) since that could easily be an app specific issue rather than a problem with the machine.

So the answer you're looking for is: We continuously test whether or not the instances (VMs) are healthy and take them down if they're not. However, those tests do not rely on error codes the customer's site returns



来源:https://stackoverflow.com/questions/30403214/does-an-azure-web-app-care-if-its-instances-are-healthy-unhealthy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!