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

Raise the max message size of gRPC for tensorflow model server #288

Closed
tobegit3hub opened this issue Jan 10, 2017 · 2 comments
Closed

Raise the max message size of gRPC for tensorflow model server #288

tobegit3hub opened this issue Jan 10, 2017 · 2 comments

Comments

@tobegit3hub
Copy link
Contributor

We have used TensorFlow Serving to load multiple models for online or offline services. For online services, we focus on the latency of each gRPC request and it's good enough. But for offline services, we want to improve the throughout by batching data in one gRPC request.

Then we need the limitation from gRPC max message size which is already discussed in #284 . The default max size is 4M which is much smaller than the real world requests.

I'm not sure if 100M is suitable but it would be better for most users. I may send an PR to raise the max message size if someone also think it's reasonable. Otherwise, most developers need to compile the source code to change this limitation.

@kirilg
Copy link
Contributor

kirilg commented Jan 12, 2017

Discussed on the PR, but our current limit as of this commit is 2G (as of about a month ago). Perhaps you're running with an old binary that's still using the default 4M? We tested the model_server after the change and it should be able to handle requests of 100M already.

@tobegit3hub
Copy link
Contributor Author

It may be my mistake and thanks @kirilg for the detailed explanation.

I have compiled the latest tensorflow_ model_server and the restriction should be in clients.

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