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

Increase the default file max #14

Closed
andrewxhill opened this issue Nov 8, 2019 · 4 comments
Closed

Increase the default file max #14

andrewxhill opened this issue Nov 8, 2019 · 4 comments

Comments

@andrewxhill
Copy link
Member

I/System.out: RESOURCE_EXHAUSTED: grpc: received message larger than max (6464397 vs. 4194304)

when sending a 5mb file across the api

@andrewxhill
Copy link
Member Author

Nevermind. The better thing to do is chunk the file up for sending over the wire. I've done this now in the client and it works great.

@asutula
Copy link
Member

asutula commented Nov 8, 2019

FWIW, I read a blog post where the guy studied the optimal chunk size for grpc file transfer... 1024 bytes. Do it.

@andrewxhill
Copy link
Member Author

oh cool, i just stole the midpoint from this guys "spoiler alert" grpc/grpc.github.io#371 32kb

@asutula
Copy link
Member

asutula commented Nov 8, 2019

This guys graphs sold me https://ops.tips/blog/sending-files-via-grpc/

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

No branches or pull requests

2 participants