通过haproxy访问节点应用程序时收到504网关超时错误

问题描述 投票:1回答:1

我在使用节点/快速应用程序配置haproxy时遇到以下情况。我在尝试着实现以下目标。

    (https)         (http)

浏览器======> haproxy =====>节点应用程序

通过浏览器加载节点应用程序时,我收到http 504网关超时错误。

以下是我的haproxy配置。haproxy configurations

以下是haproxy日志。

vm-2 haproxy[21255]: 127.0.0.1:45948 [23/Dec/2019:10:57:51.411] https-in~ servers/server1 0/0/0/-1/100001 504 194 - - sH-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
vm-2 haproxy[21255]: 127.0.0.1:45948 [23/Dec/2019:10:57:51.411] https-in~ servers/server1 0/0/0/-1/100001 504 194 - - sH-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
vm-2 haproxy[21255]: 127.0.0.1:46122 [23/Dec/2019:10:59:31.435] https-in~ servers/server1 0/0/0/-1/100002 504 194 - - sH-- 1/1/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"

任何帮助将不胜感激。

haproxy
1个回答
0
投票

您是haproxy日志,它表明完成请求需要100秒钟(即100001/100002),并且后端服务器可以发送完整响应之前,该请求已被中止(即-1)。

[如果您正在寻找严格的haproxy解决方案(即,您无法/不会调整您的应用程序,那么您将需要使用haproxy超时设置。

© www.soinside.com 2019 - 2024. All rights reserved.