Azure Web App 是否关心其实例是否健康/不健康? [英] Does an Azure Web App care if its instances are healthy/unhealthy?

查看:23
本文介绍了Azure Web App 是否关心其实例是否健康/不健康?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将一个 Web 应用程序(以前称为 Azure 网站)部署到 Azure 中的应用程序托管计划,其中包含几个实例(规模 = 2)实例前面的负载均衡器是否会关心是否存在实例不健康?

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?

我正在解决一个问题,该问题有时会导致我的网站在大约 50% 的时间内返回 http 503.我的想法是 两个实例之一失败了,但负载均衡器没有注意到.

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.

如果负载均衡器关心,它会寻找什么?例如,我无论如何都找不到指定 ping url.

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.

推荐答案

是的,Azure Web Apps 通过向其发出内部请求并验证它们是否健康来监控工作人员的健康状况.

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

但是,我们不会检查网络应用返回给用户请求的状态代码(如 500 等),因为这很可能是应用特定的问题,而不是机器的问题.

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.

因此,您正在寻找的答案是:我们会持续测试实例 (VM) 是否健康,如果不健康则将其关闭.但是,这些测试不依赖于客户网站返回的错误代码

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

这篇关于Azure Web App 是否关心其实例是否健康/不健康?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆