Skip to content

Commit e0e4741

Browse files
committed
feat: lower connection pool
1 parent a10d012 commit e0e4741

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ func InitWithIdentity(identity Identity) (*Config, error) {
9696

9797
// DefaultConnMgrHighWater is the default value for the connection managers
9898
// 'high water' mark
99-
const DefaultConnMgrHighWater = 900
99+
const DefaultConnMgrHighWater = 150
100100

101101
// DefaultConnMgrLowWater is the default value for the connection managers 'low
102102
// water' mark
103-
const DefaultConnMgrLowWater = 600
103+
const DefaultConnMgrLowWater = 50
104104

105105
// DefaultConnMgrGracePeriod is the default value for the connection managers
106106
// grace period

docs/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ The connection manager considers a connection idle if:
17781778
LowWater is the number of connections that the basic connection manager will
17791779
trim down to.
17801780

1781-
Default: `600`
1781+
Default: `50`
17821782

17831783
Type: `optionalInteger`
17841784

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

1791-
Default: `900`
1791+
Default: `150`
17921792

17931793
Type: `optionalInteger`
17941794

0 commit comments

Comments
 (0)