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

https://github.com/ipfs/kubo/pull/9483#issuecomment-1343067553
This commit is contained in:
Marcin Rataj 2022-12-08 21:45:32 +01:00 committed by GitHub
parent 72bad5c060
commit 1f636400aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -96,11 +96,11 @@ func InitWithIdentity(identity Identity) (*Config, error) {
// DefaultConnMgrHighWater is the default value for the connection managers
// 'high water' mark
const DefaultConnMgrHighWater = 150
const DefaultConnMgrHighWater = 96
// DefaultConnMgrLowWater is the default value for the connection managers 'low
// water' mark
const DefaultConnMgrLowWater = 50
const DefaultConnMgrLowWater = 32
// DefaultConnMgrGracePeriod is the default value for the connection managers
// grace period

View File

@ -1774,7 +1774,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: `50`
Default: `32`
Type: `optionalInteger`
@ -1784,7 +1784,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: `150`
Default: `96`
Type: `optionalInteger`