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 Error on many simultaneous connections #109

Closed
paulrostorp opened this issue Mar 5, 2020 · 6 comments
Closed

GRPC Error on many simultaneous connections #109

paulrostorp opened this issue Mar 5, 2020 · 6 comments

Comments

@paulrostorp
Copy link

Hi all,
I'm getting Error: 14 UNAVAILABLE: Received RST_STREAM with error code 7

When running a high number of parallel queries using the dgraph-js client.
I get no errors with a few simultaneous queries, but past a certain threshold (occurs above ~= 600-1200) the transactions return the above error.

My dgraph cluster is running at very low resource utilization (i.e not even close to being overloaded) and there is nothing of use in the alpha's logs...

I'm using [email protected], my dgraph cluster is v2.0.0-rc1

Do you have any ideas how to debug this ?

@paulrostorp
Copy link
Author

paulrostorp commented Mar 5, 2020

I setup another cluster with dgraph:v1.2.1 and the error is still occurring the same. I also setup tracing and no errors in jaeger...

Still nothing in the Alpha logs though...

@paulrostorp
Copy link
Author

paulrostorp commented Mar 6, 2020

Further experimenting led me to discover that if I run my node program as multiple parallel processes, each run 500 simultaneous queries, everything works perfectly.
I literally just did this:
yarn run dev & yarn run dev & yarn run dev & yarn run dev & yarn run dev & yarn run dev

So this leads me to believe that this has something to do with a node limit for grpc...

@paulrostorp
Copy link
Author

Tracing for the error shows:
Screenshot 2020-03-06 at 13 26 21

@paulrostorp
Copy link
Author

I enabled GRPC logs on server (GRPC_GO_LOG_SEVERITY_LEVEL=info
GRPC_GO_LOG_VERBOSITY_LEVEL=2) and now I see errors :

INFO: 2020/03/06 12:40:16 transport: loopyWriter.run returning. connection error: desc = "transport is closing"

@shynome
Copy link

shynome commented Apr 2, 2020

from grpc/grpc-node#1158 (comment)

After moving from node 12 to node 13, we no longer have the issue.

@paulrostorp maybe you can have a try

@minhaj-shakeel
Copy link
Contributor

Github issues have been deprecated.
This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants