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 max size? #1755

Closed
arbesfeld opened this issue Oct 27, 2016 · 6 comments
Closed

GRPC max size? #1755

arbesfeld opened this issue Oct 27, 2016 · 6 comments
Assignees
Labels
api: bigtable Issues related to the Bigtable API. type: question Request for information or clarification. Not an issue.

Comments

@arbesfeld
Copy link
Contributor

We noticed an error today using the BigTable emulator. We were making large insert requests against a BigTable table and it was hanging. When we killed the emulator this message appeared:

grpc: received message length 18874667 exceeding the max size 4194304 Error: grpc: received message length 18874667 exceeding the max size 4194304
    at ClientReadableStream._emitStatusIfDone (/Users/mata/AppHub/logrocket/node_modules/google-cloud/node_modules/grpc/src/node/src/client.js:189:19)
    at ClientReadableStream._receiveStatus (/Users/mata/AppHub/logrocket/node_modules/google-cloud/node_modules/grpc/src/node/src/client.js:169:8)
    at /Users/mata/AppHub/logrocket/node_modules/google-cloud/node_modules/grpc/src/node/src/client.js:577:14

I read through the documentation and didn't see a mention of a max message size. Is this the case? Any workarounds that you know of for handling large (~10MB) data?

@callmehiphop callmehiphop added the api: bigtable Issues related to the Bigtable API. label Oct 27, 2016
@callmehiphop
Copy link
Contributor

@garye does this sound right? I was looking around in the v2 files just now and the closest thing I found was mention of a max insertion of 100000 mutations.

@callmehiphop callmehiphop added the type: question Request for information or clarification. Not an issue. label Oct 27, 2016
@garye
Copy link

garye commented Oct 27, 2016

I think they're hitting a gRPC limit, not a bigtable limit.
https://github.com/grpc/grpc-go/blob/71d2ea4f75286a63b606aca2422cd17ff37fd5b8/rpc_util.go#L242

This is meant to be consistent across grpc implementations:
grpc/grpc-go#780

The workaround is to just send smaller individual requests - any individual bulk mutation, for example, should be < 4MB.

@stephenplusplus
Copy link
Contributor

@callmehiphop can we add a mention in the docs to slice up large requests to avoid this error?

@arbesfeld
Copy link
Contributor Author

@garye is there a way to increase the GRPC limit?

@garye
Copy link

garye commented Jan 4, 2017

@arbesfeld It looks like no for node, at least based on searching around and this thread: https://groups.google.com/d/msg/grpc-io/UiCvZRS1B9I/WvUmc-RfBwAJ.

@bensimian
Copy link

Has this been updated to provide an API org option to increase the size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants