Skip to content
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(connmgr): lower the default connection pool #9467

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ func InitWithIdentity(identity Identity) (*Config, error) {

// DefaultConnMgrHighWater is the default value for the connection managers
// 'high water' mark
const DefaultConnMgrHighWater = 900
const DefaultConnMgrHighWater = 150

// DefaultConnMgrLowWater is the default value for the connection managers 'low
// water' mark
const DefaultConnMgrLowWater = 600
const DefaultConnMgrLowWater = 50

// DefaultConnMgrGracePeriod is the default value for the connection managers
// grace period
Expand Down
4 changes: 2 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ The connection manager considers a connection idle if:
LowWater is the number of connections that the basic connection manager will
trim down to.

Default: `600`
Default: `50`

Type: `optionalInteger`

Expand All @@ -1778,7 +1778,7 @@ HighWater is the number of connections that, when exceeded, will trigger a
connection GC operation. Note: protected/recently formed connections don't count
towards this limit.

Default: `900`
Default: `150`

Type: `optionalInteger`

Expand Down