-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(client): add settings for gRPC client #479
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## lsa_manager #479 +/- ##
===============================================
- Coverage 62.35% 62.30% -0.05%
===============================================
Files 133 133
Lines 18446 18471 +25
===============================================
+ Hits 11502 11509 +7
- Misses 6371 6393 +22
+ Partials 573 569 -4
☔ View full report in Codecov by Sentry. |
Previously, the client provided WithGRPCDialOptions to configure general gRPC client options. However, it was challenging to use since there are so many options in gRPC, and hard for users to know the necessary things. This PR provides more specific options: - WithGRPCReadBufferSize - WithGRPCWriteBufferSize - WithGRPCInitialConnWindowSize - WithGRPCInitialWindowSize It also sets up some options like MaxCallRecvMsgSize and MaxCallSendMsgSize. It uses math.MaxInt32 value for them. Varlog users are not necessarily taken into account the maximum message size limit.
a73c054
to
917e5fc
Compare
What this PR does
Previously, the client provided WithGRPCDialOptions to configure general gRPC client options. However, it was challenging to use since there are so many options in gRPC, and hard for users to know the necessary things.
This PR provides more specific options:
It also sets up some options like MaxCallRecvMsgSize and MaxCallSendMsgSize. It uses math.MaxInt32 value for them. Varlog users are not necessarily taken into account the maximum message size limit.