Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tengine使用dyups后,会出现部分请求502 #1963

Open
Dimp1e opened this issue Oct 12, 2024 · 0 comments
Open

tengine使用dyups后,会出现部分请求502 #1963

Dimp1e opened this issue Oct 12, 2024 · 0 comments

Comments

@Dimp1e
Copy link

Dimp1e commented Oct 12, 2024

Ⅰ. Issue Description

我们目前使用的是:
Tengine version: Tengine/2.3.3 nginx version: nginx/1.18.0
做7层负载,且加了dyups模块。节点的配置是8c16g,在请求量稍微高点的情况下(1000+/s),会出现部分请求502。查看access.log 发现502的情况upstream_addr里填充的是 配置里定义的变量名(正常的情况下应该是指定的后端节点)
过程中没有upstream的变更

Ⅱ. Describe what happened

error log中也没什么相关的报错,有问题的请求access log如下:
{"time_local":"10/Oct/2024:23:22:46 +0800","http_x_forwarded_for":"","remote_addr":"2408:8440:9488:379b:5878:89df:b959:6475","remote_port":"60495","server_addr":"fd00:172:28:50::149","upstream_addr":"xxx-xxx_xxx","status":"502","bytes_sent":"832","body_bytes_sent":"631","request_length":"615","upstream_response_length":"0","request_time":"0.000","request_method":"POST","scheme_host_uri":"https://xxxxxxxx.com/gapi/o2o/aggregatePay/services/noticePointForAggregatePay","query_string":"","http_host":"xxxxxxx.com","http_referer":"https://xxxxx.com.cn/","http_user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.51(0x1800332e) NetType/4G Language/zh_CN"}
其中域名部分信息已做脱敏

Ⅲ. Describe what you expected to happen

以下是正常的请求:
{"time_local":"11/Oct/2024:00:00:59 +0800","http_x_forwarded_for":"","remote_addr":"2408:844b:e00:a273:255f:66c:48c7:fd5f","remote_port":"15057","server_addr":"fd00:172:28:50::149","upstream_addr":"172.28.178.xx:8030","status":"200","bytes_sent":"339","body_bytes_sent":"63","request_length":"331","upstream_response_length":"63","request_time":"0.048","request_method":"POST","scheme_host_uri":"https://xxxxxxxx.com/gapi/o2o/aggregatePay/services/noticePointForAggregatePay","query_string":"","http_host":"xxxxxxxx.com","http_referer":"https://xxxxxxxx.bestpay.com.cn/","http_user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.52(0x18003425) NetType/4G Language/zh_CN"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant