Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gRPC - Nginx connection is draining #2197

Closed
stephanustedy opened this issue Jul 3, 2018 · 3 comments
Closed

gRPC - Nginx connection is draining #2197

stephanustedy opened this issue Jul 3, 2018 · 3 comments

Comments

@stephanustedy
Copy link

gRPC version :
v1.10.0

go version :
v1.10.2

OS :
Ubuntu 14.04

I try to use nginx.
setup is :

  • use service discovery, it will resolve to multiple server
  • each server will have dedicated nginx and do grpc_pass to localhost

I get this error on the client rpc error: code = Unavailable desc = the connection is draining
what happens actually ? and how to fix this.

Thanks

@lyuxuan
Copy link
Contributor

lyuxuan commented Jul 3, 2018

This error means the RPC fails because the connection is draining. This could be caused by server sending goaway or balancer removing the address. I think this issue involves grpc-web as you mention grpc_pass, you may open an issue in their repo and reference this issue there.

At the same time you may run with GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info to gather more debug info. Thanks!

@stephanustedy
Copy link
Author

okay.

will open issue and debug more.
Thanks!

@lyuxuan
Copy link
Contributor

lyuxuan commented Jul 10, 2018

FYI #2205 seems relevant to this issue.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants