Skip to content

feat(client): add settings for gRPC client#479

Merged
ijsong merged 1 commit intomainfrom
client_grpc_options
Jun 19, 2023
Merged

feat(client): add settings for gRPC client#479
ijsong merged 1 commit intomainfrom
client_grpc_options

Conversation

@ijsong
Copy link
Copy Markdown
Member

@ijsong ijsong commented Jun 14, 2023

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:

  • 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.

@ijsong ijsong self-assigned this Jun 14, 2023
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 14, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05 ⚠️

Comparison is base (64eae0b) 62.35% compared to head (917e5fc) 62.30%.

❗ 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     
Impacted Files Coverage Δ
pkg/varlog/options.go 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Jun 19, 2023

@ijsong started a stack merge that includes this pull request via Graphite.

Base automatically changed from lsa_manager to main June 19, 2023 06:19
@ijsong ijsong merged commit 4b8f01c into main Jun 19, 2023
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Jun 19, 2023

@ijsong merged this pull request with Graphite.

@ijsong ijsong deleted the client_grpc_options branch June 19, 2023 06:20
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

Successfully merging this pull request may close these issues.

3 participants