-
Notifications
You must be signed in to change notification settings - Fork 140
CBG-4895: Allow tuning of dcp_read_buffer and kv_buffer server connstr parameters #7829
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
Changes from 7 commits
5288883
9a49b47
ad83f57
f4650d3
296da24
b501c94
dfee3e5
e925166
f31e7ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -600,8 +600,14 @@ func GetBucketSpec(ctx context.Context, config *DatabaseConfig, serverConfig *St | |
| } else { | ||
| server = serverConfig.Bootstrap.Server | ||
| } | ||
| if serverConfig.IsServerless() { | ||
| params := base.DefaultServerlessGoCBConnStringParams() | ||
|
|
||
| if !base.ServerIsWalrus(server) && server != "" { | ||
|
||
| var params *base.GoCBConnStringParams | ||
| if serverConfig.IsServerless() { | ||
| params = base.DefaultServerlessGoCBConnStringParams() | ||
| } else { | ||
| params = base.DefaultGoCBConnStringParams() | ||
| } | ||
| if config.Unsupported != nil { | ||
| if config.Unsupported.DCPReadBuffer != 0 { | ||
| params.DcpBufferSize = config.Unsupported.DCPReadBuffer | ||
|
|
||
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.
Can we leave this code the way it used to look?