aoozoo opened a new issue #5559: URL: https://github.com/apache/apisix/issues/5559
### Issue description # 5秒内第一次请求需要4秒左右才返回  ### Environment - apisix version (cmd: ``): ```bash 最新版 2.10.1 ``` - OS (cmd: `Centos7`): ```bash Centos7 ``` - OpenResty / Nginx version (cmd: ``): ```bash [root@Node_10.10.10.21 /usr/local/apisix/dashboard/logs]# openresty -V nginx version: openresty/1.19.9.1 built by gcc 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) built with OpenSSL 1.1.1k 25 Mar 2021 (running with OpenSSL 1.1.1l 24 Aug 2021) TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.20 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.10 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/loc al/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --with-cc='ccache gcc -fdiagnostics-color=always' --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-http_ssl_module ``` - etcd version, if have (cmd: run `` to get the info from server-info API): ```bash [root@Node_10.10.10.21 /usr/local/apisix/dashboard/logs]# curl http://127.0.0.1:9090/v1/server_info {"up_time":1108,"last_report_time":1637310514,"id":"30d05fc8-9f69-490a-865e-a86161dfda88","hostname":"etcd-21","version":"2.10.1","boot_time":1637309434,"etcd_version":"3.5.0"} ```bash - apisix-dashboard version, if have: - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): ### Steps to reproduce 1. 随便创建一条路由规则,转发到一个后端服务 2. 通过浏览器访问,匹配到该路由进行处理 3. 打开F12会发现,第一个请求需要4秒多才能返回 ### Actual result 3. 打开F12会发现,第一个请求需要4秒多才能返回 ### Error log 没有报错 ### Expected result 为啥第一次请求需要4秒多,再刷新几十毫秒就返回了,后端服务是个动态接口,接口1毫秒就处理完了。 第一个请求也应该几十毫秒就要返回。 -- 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]
