Health/readiness Azure 应用服务探测

Health/readiness probes for Azure App Services

我有预定义了多个扩展规则的应用程序服务,当负载均衡器路由我的请求时,我希望能够为我的应用程序(而不是服务器本身)配置 health/readiness 探测器,这是否可以实现?如果不是,可以应用哪些解决方法?

据我所知,Azure 应用服务是 Azure 平台的托管服务。它是一种基于 HTTP 的服务,用于托管 Web 应用程序、REST API 和移动后端,而无需显式配置或管理基础设施。所以,我认为您不能对应用服务的负载平衡能力有更多的控制。

但是,如果您直接将应用程序托管在 Azure load balancer, you can directly set the health probe for your backend instance via probe a port on a backend endpoint that reflects the health of that instance and the application service you are providing. You could get more details from design guidance 后面的 VM 或 VMSS 等底层基础架构上。

此外,如果您厌倦了应用服务,您仍然可以选择多种负载均衡服务。您需要在应用服务前面添加仅接受 HTTP(S) 流量的第 7 层负载均衡器,例如 Azure 前门或 Azure 应用程序网关。

如需更多参考资料,您可以阅读 overview of load-balancing options in Azure