Ethan-Zhang-ZH opened a new issue, #12198:
URL: https://github.com/apache/apisix/issues/12198

   ### Description
   
   Route configure:
   ```
   {
     "uri": "/*",
     "name": "test",
     "desc": "test",
     "hosts": [
       "test.com"
     ],
     "plugins": {
       "limit-req": {
         "_meta": {
           "disable": false
         },
         "allow_degradation": false,
         "burst": 300000,
         "key": "remote_addr",
         "key_type": "var",
         "nodelay": false,
         "policy": "local",
         "rate": 300000,
         "rejected_code": 429,
         "rejected_msg": "limit by route rule"
       },
       "traffic-split": {
         "_meta": {
           "disable": false
         },
         "rules": [
           {
             "weighted_upstreams": [
               {
                 "upstream_id": "561760504339497616",
                 "weight": 0
               },
               {
                 "weight": 100
               }
             ]
           }
         ]
       }
     },
     "upstream": {
       "timeout": {
         "connect": 6,
         "send": 60,
         "read": 60
       },
       "type": "roundrobin",
       "checks": {
         "active": {
           "concurrency": 10,
           "healthy": {
             "http_statuses": [
               200,
               302
             ],
             "interval": 5,
             "successes": 3
           },
           "http_path": "/dm0/ping",
           "timeout": 3,
           "type": "http",
           "unhealthy": {
             "http_failures": 3,
             "http_statuses": [
               404,
               500,
               501,
               502,
               503,
               504,
               505
             ],
             "interval": 5,
             "tcp_failures": 2,
             "timeouts": 5
           }
         }
       },
       "scheme": "http",
       "discovery_type": "kubernetes",
       "pass_host": "pass",
       "service_name": "xxx-dm0-test/dm0-test:http",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 16
       }
     },
     "status": 1
   }
   ```
   Error log:
   ```
   2025/05/08 06:41:52 [error] 54#54: *10943657 [lua] healthcheck.lua:1383: 
log(): [healthcheck] (upstream#/xxx/routes/561760694207251088) failed to 
receive status line from '7.120.24.22 (7.120.24.22:10000)': timeout, context: 
ngx.timer, client: 7.46.25.36, server: 0.0.0.0:80
   2025/05/08 06:41:52 [warn] 54#54: *10943657 [lua] healthcheck.lua:1383: 
log(): [healthcheck] (upstream#/xxx/routes/561760694207251088) unhealthy 
TIMEOUT increment (1/5) for '7.120.24.22(7.120.24.22:10000)', context: 
ngx.timer, client: 7.46.25.36, server: 0.0.0.0:80
   2025/05/08 06:41:54 [warn] 54#54: *10943793 [lua] healthcheck.lua:1383: 
log(): [healthcheck] (upstream#/xxx/routes/561760694207251088) healthy SUCCESS 
increment (1/3) for '7.120.24.22(7.120.24.22:10000)', context: ngx.timer, 
client: 7.46.25.36, server: 0.0.0.0:80
   2025/05/08 06:41:59 [warn] 54#54: *10943949 [lua] healthcheck.lua:1383: 
log(): [healthcheck] (upstream#/xxx/routes/561760694207251088) healthy SUCCESS 
increment (2/3) for '7.120.24.22(7.120.24.22:10000)', context: ngx.timer, 
client: 7.46.25.36, server: 0.0.0.0:80
   2025/05/08 06:42:04 [warn] 54#54: *10944079 [lua] healthcheck.lua:1383: 
log(): [healthcheck] (upstream#/xxx/routes/561760694207251088) healthy SUCCESS 
increment (3/3) for '7.120.24.22(7.120.24.22:10000)', context: ngx.timer, 
client: 7.46.25.36, server: 0.0.0.0:80
   ```
   
   `failed to receive status line from '7.120.24.22 (7.120.24.22:10000)': 
timeout` error occur occasionally.
   
   
![Image](https://github.com/user-attachments/assets/1d1a1494-5159-4ea0-a712-aa4397c4f0c2)
   
   And this is  packet capture at the same time. Upstream receive healthcheck 
after apisix sock:close (3s timeout).It doesn't feel like a coincidence. 
However, I'm unable to determine the root cause. Could you assist me?
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.10.0
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to