简体   繁体   English

Azure WAF 或流量管理器在存在 503 时返回 502

[英]Azure WAF or Traffic Manager returning 502 when 503 is present

We have a web API server that sits behind Azure WAF and Traffic manager and everything is working fine except when the API returns 503 for maintenance and here are the steps to reproduce the issue.我们有一个 web API 服务器,位于 Azure WAF 和流量管理器后面,一切正常,除非 API 返回 503 进行维护,这里是重现问题的步骤。

  1. API starts to return 503 starting at 10:00 pm with Retry-After: 10:10 pm API 从晚上 10:00 开始返回 503,并在晚上 10:10 重试
  2. From 10:00 pm to 10:02 pm, the requests hit the server and the server returns 503 correctly.从晚上10:00到10:02,请求打到服务器,服务器正确返回503。
  3. From 10:03 pm to 10:10 pm, Microsoft-Azure-Application-Gateway/v2 returns 502 and the requests don't even hit the server从晚上 10:03 到晚上 10:10,Microsoft-Azure-Application-Gateway/v2 返回 502,请求甚至没有到达服务器
  4. From 10:10 pm the requests can hit the server again.从晚上 10:10 开始,请求可以再次访问服务器。

We do not want Azure Gateway to return 502 during the maintenance window. How can I make it so that the Gateway does not return 502?我们不希望Azure网关在window维护期间返回502,如何才能让网关不返回502呢?

Seems like below is your traffic flow.好像下面是您的流量。

Client -> Traffic Manager -> Application Geteway -> API客户端 -> 流量管理器 -> 应用程序 Geteway -> API

During the API maintenance window, it returns HTTP 503. The application gateway probing is marking the backend server as unhealthy as the default HTTP status range doesn't include 503. You change the application gateway and Traffic Manager custom probe HTTP status to 200-503.在 API 维护 window 期间,它返回 HTTP 503。应用程序网关探测将后端服务器标记为不健康,因为默认的 HTTP 状态范围不包括 503。您将应用程序网关和流量管理器自定义探测 8827167211 508 状态更改为 30 5088 .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 函数在日志中显示成功但在门户测试中返回 503 错误以及在 Postman 中返回 502 错误 - Azure Functions showing successful in logs but returning 503 error in portal test as well as 502 error in Postman Azure SQL 地理复制 - 流量管理器 - Azure SQL Geo Replication - Traffic Manager AWS WAF 和 Firewall Manager - 没有应用规则时的默认操作 - AWS WAF and Firewall Manager - Default action when there are no rules applied 502 / 503 / 404 HTTP 错误:GKE ingress-nginx 将来自其他命名空间的流量提供给错误的服务 - 502 / 503 / 404 HTTP error : GKE ingress-nginx serving traffic to the wrong services, from other namespaces 使用 Azure 应用程序网关阻止所有 http/https 流量的 WAF 规则 - WAF Rule to block all http/https traffic using Azure Application gateway Azure WAF 403响应 - Azure WAF 403 Response 在 Azure WAF 中自定义 IP 范围 - Custom IP Range in Azure WAF 创建端点流量管理器配置文件时端点不兼容 - The endpoint is not compatible when creating endpoint Traffic Manager profile 执行 Azure 数据工厂管道时是否可以测量网络流量? - Is it possible to measure network traffic when executing Azure Data Factory Pipeline? 如何将根域 A 记录路由到具有流量管理器端点的流量管理器 - How to route root domain A record to a traffic manager with traffic manager endpoints
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM