Bug 27203 - 循环请求nginx代理,nginx频繁无法请求后端
Summary: 循环请求nginx代理,nginx频繁无法请求后端
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-5.10 (show other bugs) kernel - anck-5.10
Version: 8.10
Hardware: x86_64 Linux
: P3-Medium S1-blocker
Target Milestone: ---
Assignee: maqiao_mq
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-14 13:27 UTC by xuchongchong
Modified: 2025-11-14 13:27 UTC (History)
0 users

See Also:


Attachments
卡顿bug详情 (11.41 MB, application/zip)
2025-11-14 13:27 UTC, xuchongchong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xuchongchong 2025-11-14 13:27:09 UTC
Created attachment 1375 [details]
卡顿bug详情

Manufacturer: LENOVO
Product Name: ThinkSystem ST45 V3
使用了AMD和Inter的两款CPU,尝试了龙蜥8.9和8.10,均出现这个问题。其中龙蜥8.10尝试了anck-5.10和rhck-4.18两款内核。均有此问题。最终变更系统为银河麒麟V10,问题解决。

1.直接访问后端,无故障,可以一直循环请求。
while true; do curl http://127.0.0.1:8405/api/org/enterpriseaccountnoauth/geticp?enterprise_code=dda49c8f984d49e4a1ac0eb205bc771b; done

2.nginx配置 listen 80
location ~ /api/org {
         proxy_pass         http://localhost:8405;
         proxy_http_version 1.1;
         proxy_set_header   Upgrade $http_upgrade;
         proxy_set_header   Connection keep-alive;
         proxy_set_header   Host $host;
         proxy_cache_bypass $http_upgrade;
         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header   X-Forwarded-Proto $scheme;
     }
 
循环调用nginx代理,出现问题。无论是编译安装nginx,还是rpm安装nginx,使用epoll事件请求或poll事件请求都会卡住。最后只能更换麒麟OS,问题解决。
while true; do curl http://127.0.0.1/api/org/enterpriseaccountnoauth/geticp?enterprise_code=dda49c8f984d49e4a1ac0eb205bc771b; done

调用卡顿,使用strace跟踪,发现系统调用会频繁自动卡顿在epoll或poll事件。具体详情,见附件。