From fedfcc6e0b5053b01f51b51814eaa14fa23080ad Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 7 Dec 2022 01:01:17 +0100 Subject: [PATCH] feat: lower connection pool --- config/init.go | 4 ++-- docs/config.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/init.go b/config/init.go index f86317369f5..29e960e8bc8 100644 --- a/config/init.go +++ b/config/init.go @@ -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 diff --git a/docs/config.md b/docs/config.md index ba775ad3b73..63f48d142b9 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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` @@ -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`