-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow to tune the read/write buffers for gRPC server #1218
Conversation
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1218 +/- ##
=======================================
Coverage 88.07% 88.07%
=======================================
Files 203 203
Lines 14658 14664 +6
=======================================
+ Hits 12910 12916 +6
Misses 1310 1310
Partials 438 438
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious: do you notice any performance details when you increase these buffers?
|
||
// The WriteBufferSize for client gRPC. See grpc.ReadBufferSize | ||
// (https://godoc.org/google.golang.org/grpc#ReadBufferSize). | ||
ReadBufferSize int `mapstructure:"read_buffer_size"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this make any difference? In my similar experiments with WebSockets reading buffers did not make any difference since we are reading in big chunks. But perhaps gRPC is different, it will be interesting to know if increasing this buffer size makes a difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw some difference in gRPC on my Mac not as much as on the client but still something.
|
||
// The WriteBufferSize for client gRPC. See grpc.WriteBufferSize | ||
// (https://godoc.org/google.golang.org/grpc#WriteBufferSize). | ||
WriteBufferSize int `mapstructure:"write_buffer_size"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not matter. We are not sending anything big from our servers, only tiny responses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct but want to have them to be completed also because it may matter in a pull protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.