-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: increase grpc max call send & receive msg size #192
Conversation
Pull Request Test Coverage Report for Build 3947610556
💛 - Coveralls |
internal/server/server.go
Outdated
config.grpcAddr(), | ||
grpc.WithTransportCredentials(insecure.NewCredentials()), | ||
grpc.WithDefaultCallOptions( | ||
grpc.MaxCallRecvMsgSize(GRPCMaxClientSendSize), |
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.
Do we need to increase RecvMsg as well? All of our insert APIs do not seem to need it.
wdyt?
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.
Not sure about this.
Increased the RecvMsg
as well, as asset payload can be huge - but haven't faced this scenario yet.
internal/server/server.go
Outdated
@@ -30,6 +30,10 @@ import ( | |||
"google.golang.org/protobuf/encoding/protojson" | |||
) | |||
|
|||
const ( | |||
GRPCMaxClientSendSize = 32 << 20 |
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.
should we make it configurable as well ? wdyt?
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.
Yes. I think we should be able to configure it also if needed.
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.
made both values to be configurable
* add support for user configurability of max call recv and send size in grpc config
79369e1
to
e278504
Compare
32MB
from default4MB
.