@cryptotaxi247 / kubo / commits / 1f636400a

feat: adjust ConnMgr target to 32-96 (#9483)

https://github.com/ipfs/kubo/pull/9483#issuecomment-1343067553

Marcin Rataj committed Dec 8, 2022 at 21:45 UTC 1f636400aa061759d4be6f27de653750cb32bbd3
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 = 150
99 +const DefaultConnMgrHighWater = 96
100
101 // DefaultConnMgrLowWater is the default value for the connection managers 'low
102 // water' mark
103 -const DefaultConnMgrLowWater = 50
103 +const DefaultConnMgrLowWater = 32
104
105 // DefaultConnMgrGracePeriod is the default value for the connection managers
106 // grace period
docs/config.md
+2 -2
@@ -1774,7 +1774,7 @@ The connection manager considers a connection idle if:
1774 LowWater is the number of connections that the basic connection manager will
1775 trim down to.
1776
1777 -Default: `50`
1777 +Default: `32`
1778
1779 Type: `optionalInteger`
1780
@@ -1784,7 +1784,7 @@ HighWater is the number of connections that, when exceeded, will trigger a
1784 connection GC operation. Note: protected/recently formed connections don't count
1785 towards this limit.
1786
1787 -Default: `150`
1787 +Default: `96`
1788
1789 Type: `optionalInteger`
1790