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 2022/12/27 09:44:25 UTC

[GitHub] [apisix] xionghanhan opened a new issue, #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

xionghanhan opened a new issue, #8576:
URL: https://github.com/apache/apisix/issues/8576

   ### Description
   
   试了两种情况
   1.直接客户端并发调用超过200,不经过网关,不会报这个rpc error: code = Unavailable desc = the connection is draining错误。
   2.经过apisix网关转发调用,超过并发200就会报这个rpc error: code = Unavailable desc = the connection is draining错误。
   我怀疑是连接池的配置问题,但是我修改连接池的参数,并发的次数还是超过200就会报错,所以很疑惑,期望可以解答一下。
   
   
   
   ### Environment
   
   1.使用docker部署的apisix。
   2.docker部署两个grpc服务
   3.镜像版本:apache/apisix:2.12.0-alpine
   4.apisix-dashboard配置如下图
   ![image](https://user-images.githubusercontent.com/79395110/209646751-78456647-49b6-4fb1-80f4-959f2588620b.png)
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] An-DJ commented on issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

Posted by GitBox <gi...@apache.org>.
An-DJ commented on issue #8576:
URL: https://github.com/apache/apisix/issues/8576#issuecomment-1366411910

   @spacewander plz assign to me.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] monkeyDluffy6017 closed issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 closed issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining
URL: https://github.com/apache/apisix/issues/8576


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] xionghanhan commented on issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

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

   OK, thanks.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] An-DJ commented on issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

Posted by GitBox <gi...@apache.org>.
An-DJ commented on issue #8576:
URL: https://github.com/apache/apisix/issues/8576#issuecomment-1367262292

   @xionghanhan 
   Basiclly that problem is caused by the `failfast` of gRPC (https://github.com/grpc/grpc-go/issues/2205).
   
   Apisix supports configuring nginx directly:
   https://github.com/apache/apisix/blob/master/docs/en/latest/customize-nginx-configuration.md
   
   So you can set `http2_max_requests 10000` or a larger number in `conf/config.yaml` to solve this like below:
   
   ```
   nginx_config:
     http_server_configuration_snippet: |
         keepalive_requests 10000;
   ```
   
   Or try to use `grpc.FailFast(false)` to switch off the failfast, refering https://github.com/grpc/grpc-go/issues/2205.


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] An-DJ commented on issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

Posted by GitBox <gi...@apache.org>.
An-DJ commented on issue #8576:
URL: https://github.com/apache/apisix/issues/8576#issuecomment-1367036058

   @xionghanhan Could u please offer the logs after ur test? e.g. `logs/error.log` and `logs/access.log`


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] spacewander commented on issue #8576: help request: grpc服务请求并发超过200,客户端就会报rpc error: code = Unavailable desc = the connection is draining

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

   @An-DJ 
   Could you take a look? Thanks!


-- 
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: notifications-unsubscribe@apisix.apache.org

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