You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/02 01:50:55 UTC

[GitHub] [apisix] hnlq715 opened a new issue #3478: request help: how to make grpc transcode connection keepalive

hnlq715 opened a new issue #3478:
URL: https://github.com/apache/apisix/issues/3478


   ### Issue description
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 
   ```
   master branch
   ```
   * OS (cmd: `uname -a`):
   ```
   ```
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   ```
   nginx version: openresty/1.19.3.1
   built with OpenSSL 1.1.1h  22 Sep 2020 (running with OpenSSL 1.1.1i  8 Dec 2020)
   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.19 --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.9 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/loca
 l/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --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-stream --with-http_ssl_module
   ```
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   ```
   etcd Version: 3.4.14
   Git SHA: 8a03d2e96
   Go Version: go1.12.17
   Go OS/Arch: linux/amd64
   ```
   * apisix-dashboard version, if have:
   
   
   I'm testing grpc trancode plugin, and find the benchmark result is not in my expectation.
   
   I use perf to generate a flame graph, which shows the nginx upstream connection is not reused...
   I have configured keepalive and keepalive for upstream, grpc_socket_keepalive is on.
   So... my question is how to keep the upstream connection reused? Many thanks.
   
   [perf-kernel-2.svg.gz](https://github.com/apache/apisix/files/5908089/perf-kernel-2.svg.gz)
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hnlq715 closed issue #3478: request help: how to make grpc transcode connection keepalive

Posted by GitBox <gi...@apache.org>.
hnlq715 closed issue #3478:
URL: https://github.com/apache/apisix/issues/3478


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hnlq715 closed issue #3478: request help: how to make grpc transcode connection keepalive

Posted by GitBox <gi...@apache.org>.
hnlq715 closed issue #3478:
URL: https://github.com/apache/apisix/issues/3478


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hnlq715 commented on issue #3478: request help: how to make grpc transcode connection keepalive

Posted by GitBox <gi...@apache.org>.
hnlq715 commented on issue #3478:
URL: https://github.com/apache/apisix/issues/3478#issuecomment-771301018


   Seems like keep alive works...close this issue


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hnlq715 commented on issue #3478: request help: how to make grpc transcode connection keepalive

Posted by GitBox <gi...@apache.org>.
hnlq715 commented on issue #3478:
URL: https://github.com/apache/apisix/issues/3478#issuecomment-771301018


   Seems like keep alive works...close this issue


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org