对等上游客户端 node.js 应用程序重置连接

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

我们有一个 node.js 应用程序,它在我们的本地系统上运行得很好,没有给出 502 错误的网关。当部署在具有 nginx 入口控制器的 aks 集群上时,它会在客户端提供 502 错误网关,并在日志中显示连接由对等错误 104 重置。

ingress controller 的 proxy_body_size 为 50m proxy_read_timeout 是 3600 proxy_request_timeout 是 3600 proxy_write_timeout 是 3600

Ingress 控制器适用于基于 Python Django 的应用程序。

错误

2023/03/06 07:48:40 [error] 1282#1282: *23111738 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.3.1.77, 服务器:devgatewayhn.hypernymbiz.com,请求:“POST /sp-platform/vehicles HTTP/1.1”,上游:“http://10.3.1.97:8087/vehicles”,主机:“”

node.js nginx nginx-reverse-proxy nginx-config
© www.soinside.com 2019 - 2024. All rights reserved.