john1337 commented on issue #12847:
URL: https://github.com/apache/apisix/issues/12847#issuecomment-3698053606

   这是我使用AI搜索到的结果,不知对不对:
   Nginx Ingress Controller (官方) 和 Apache APISIX 虽然底层都是 Nginx/OpenResty,但它们对 
Upstream 的长连接处理策略 截然不同 :
   
   1. Nginx Ingress Controller :
      
      - 默认开启 Keep-Alive :它默认会对 Upstream 启用 keepalive 指令(通常默认连接数是 32 或更高)。
      - 自动处理协议 :它会自动设置 proxy_http_version 1.1 和 Connection "" 来确保连接复用。
   2. Apache APISIX :
      
      - 默认行为 :APISIX 的默认模板(正如我们刚才查代码看到的) 并没有 默认对所有路由强制开启 proxy_http_version 1.1 
。它更倾向于让用户通过 Upstream 对象显式配置,或者保持 Nginx 原生的 HTTP/1.0 短连接行为。
      - 这正是问题的根源 :在没有显式优化的情况下,APISIX 可能会退化为 短连接模式 。  


-- 
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