-
Notifications
You must be signed in to change notification settings - Fork 158
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 configuring grpc max receive message size #738
base: master
Are you sure you want to change the base?
allow configuring grpc max receive message size #738
Conversation
a5a4e79
to
6a4661f
Compare
6a4661f
to
920f2cf
Compare
@@ -393,6 +393,8 @@ func startGrpcServer(c *config.Config, grpcServer **grpc.Server, | |||
|
|||
opts = append(opts, grpc.ChainStreamInterceptor(streamInterceptors...)) | |||
opts = append(opts, grpc.ChainUnaryInterceptor(unaryInterceptors...)) | |||
log.Println("Setting gRPC Max Receive Message Size to:", c.GrpcMaxRecvMsgSize) |
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.
Is this line left over from debugging?
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.
No, this was left intentionally as it is generally helpful to communicate upon startup what the picked up/configured value is. Especially useful if two values are provided, one at the CLI and the other in the config.
Seems like Pants is implementing a principled fix in pantsbuild/pants#20708. How do you want to proceeed with this PR @jasonwbarnett ? |
@buchgr It's up to you. I don't know much about gRPC and when it is or isn't appropriate to increase the default message send/receive sizes. If there are cases where it's appropriate, I'd like to see this get merged. If there aren't ever scenarios where this is appropriate, it should probably just be closed without a merge. |
I think if we decide to land this PR, then the flag needs to have a prominent warning about ensuring that the client side configuration matches for all clients that use the cache. However, if pants only needs this for FindMissingBlobs, then that should be an easy fix on the pants side and we should not add this option to bazel-remote. |
Fixes #658