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
New error after migrating to @grpc/grpc-js -> RESOURCE_EXHAUSTED: Bandwidth exhausted #1942
Comments
I suggest setting the channel option |
Thanks, I'll try that. Two questions:
|
Unfortunately, the information that Node gives gRPC for these errors is indistinguishable from an actual resource exhausted error. I could broaden the message a little to include this kind of failure. The 10 MB default is also set by Node itself. I think it's not really obvious what the right value is because it's a per-session value, so the total memory usage limit depends on how many different sessions you intend to have. gRPC abstracts that away somewhat, but it's roughly the number of different servers you are connecting to. |
Thanks for the clarifications. I'll report back if I see the error again with the next two weeks after having set a hight limit. Otherwise, the ticket can be closed. |
Problem description
As proposed, we have migrated to the new
@grpc/grpc-js
npm package. Now, we got a newRESOURCE_EXHAUSTED
error every now and then on the client. Unfortunately, nothing is logged on the server side (which was migrated to @grpc/grpc-js too). Also, there is very little documentation available, e.g.: are there potential grpc settings which may limit something? How to get more logs?Reproduction steps
Unclear. Occurs about once a day. Did not occur before migration.
Environment
Additional context
The text was updated successfully, but these errors were encountered: