[英]Azure App Gateway returns 502 with Private LB and Service Fabric
We have a multi-tenant application running on Service Fabric behind a public and private load balancer. 我们在公共和私有负载均衡器后面的Service Fabric上运行多租户应用程序。 Each tenant gets a copy of the app running on a different port in Service Fabric.
每个租户都会获得在Service Fabric中不同端口上运行的应用程序的副本。
Application Gateway is used for SSL offloading to private load balancer with multi-site listener per tenant/app. Application Gateway用于通过每个租户/应用程序的多站点侦听器将SSL卸载到专用负载均衡器。 The application seems to work fine except in this a very odd scenario.
应用程序似乎工作正常,除非在这非常奇怪的情况下。 There's a double POST followed by a GET.
有一个双POST后跟GET。 The first POST returns 200 and the second one 302. I think the second one sets a dynamic route that is then called by GET.
第一个POST返回200,第二个POST返回302.我认为第二个POST设置一个动态路由,然后由GET调用。 If you try to manually access the new route you get 404.
如果您尝试手动访问新路线,则会获得404。
Somehow in this bizarre context App Gateway returns 502. 不知何故,在这个奇怪的背景下,App Gateway返回502。
I already tried the following: - Setting a custom probe with a range of 200-599 - Pointing an App Gateway to a single VM (from the SF cluster) - Removing HTTPS configuration - HTTP only 我已经尝试过以下操作: - 设置范围为200-599的自定义探针 - 将App Gateway指向单个VM(来自SF群集) - 删除HTTPS配置 - 仅限HTTP
We worked it out. 我们解决了这个问题。 It was a cookie size.
这是一个cookie大小。 The request that was throwing 502 was setting some additional cookie data, making it larger than 4KB
抛出502的请求是设置一些额外的cookie数据,使其大于4KB
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.