feat: lower connection pool
Marcin Rataj committed
Dec 7, 2022 at 01:01 UTC
e0e4741fe0d40ea7ac0feaf3b95ad29427bedb20
2 files changed
+4
-4
config/init.go
+2
-2
@@ -96,11 +96,11 @@ func InitWithIdentity(identity Identity) (*Config, error) {
96
97
// DefaultConnMgrHighWater is the default value for the connection managers
98
// 'high water' mark
99
-const DefaultConnMgrHighWater = 900
99
+const DefaultConnMgrHighWater = 150
100
101
// DefaultConnMgrLowWater is the default value for the connection managers 'low
102
// water' mark
103
-const DefaultConnMgrLowWater = 600
103
+const DefaultConnMgrLowWater = 50
104
105
// DefaultConnMgrGracePeriod is the default value for the connection managers
106
// grace period
docs/config.md
+2
-2
@@ -1778,7 +1778,7 @@ The connection manager considers a connection idle if:
1778
LowWater is the number of connections that the basic connection manager will
1779
trim down to.
1780
1781
-Default: `600`
1781
+Default: `50`
1782
1783
Type: `optionalInteger`
1784
@@ -1788,7 +1788,7 @@ HighWater is the number of connections that, when exceeded, will trigger a
1788
connection GC operation. Note: protected/recently formed connections don't count
1789
towards this limit.
1790
1791
-Default: `900`
1791
+Default: `150`
1792
1793
Type: `optionalInteger`
1794