问题描述
是否可以配置azure网站负载均衡器探针以检查特定路径?
Is there a way to configure azure website load balancer probe to check a specific path?
上下文:
我正在将Cloud Service转换为WebApp(网站)。在云服务的服务定义中,负载均衡器探针配置为检查特定路径(例如 / healthcheck)。
Context:I'm converting a Cloud Service to a WebApp (website). In the service definition of the cloud service, the load balancer probe is configured to check a specific path (example "/healthcheck").
我看到azure webapps使用IIS
I see that azure webapps uses IIS extension "Application Request Routing", which is the only thing that looks promising.
推荐答案
简短的回答是否。
Azure网站会在内部查看整个服务器的运行状况,如果服务器运行状况不佳,它将不会收到请求。
Azure websites internally looks at the health of the whole server, and if the server is not healthy it will not receive requests.
提供更多详细信息:Azure网站负载均衡器使用负载索引路由请求。负载指数是根据工作服务器的资源负载计算的。它还使用一些称为ARR亲和力Cookie的方法,使会话保持粘性,即,如果某个特定工作人员正在向客户端提供请求,则该工作人员将为后续请求提供服务。
To provide more details: the Azure Website load balancer uses a load index to route requests. The load index is calculated based on the resource load of the worker servers. It also uses some called an ARR affinity cookie which keeps sessions "sticky" i.e. if a client is being served requests by a particular worker, subsequent requests will be served by that worker.
请注意,可以使用IaaS(即Azure VM)配置显式路径来检查负载均衡器。
Note that it is possible to configure an explicit path to check for the load balancer using IaaS, i.e. Azure VMs.
(来源:我是开发人员Azure Web Apps团队)
(Source: I'm a dev on the Azure Web Apps team)
这篇关于Azure WebApp(WebSite)负载平衡器探针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!