From 9f01060a7fb6a173e0cbabe5c1514da9bd3f70d3 Mon Sep 17 00:00:00 2001 From: Jakob Kartschall Date: Mon, 30 Mar 2020 15:04:58 +0200 Subject: [PATCH] Allow more connection reuse than the default of 2 Signed-off-by: Jakob Kartschall --- pkg/objstore/s3/s3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/objstore/s3/s3.go b/pkg/objstore/s3/s3.go index d924eeb01f..fba75f745c 100644 --- a/pkg/objstore/s3/s3.go +++ b/pkg/objstore/s3/s3.go @@ -149,6 +149,7 @@ func NewBucketWithConfig(logger log.Logger, config Config, component string) (*B DualStack: true, }).DialContext, MaxIdleConns: 100, + MaxIdleConnsPerHost: 100, IdleConnTimeout: time.Duration(config.HTTPConfig.IdleConnTimeout), TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second,