From 775eb5476ba80593e8d73af0c752dfd92cbe4453 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 15 Oct 2021 10:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E6=BA=90=E7=AB=99=E7=9A=84=E5=B9=B6=E5=8F=91=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=95=B0=EF=BC=8832=20*=20CPU=EF=BC=89=E5=92=8C=E7=A9=BA?= =?UTF-8?q?=E9=97=B2=E8=BF=9E=E6=8E=A5=E6=95=B0=EF=BC=888=20*=20CPU?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_client_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/http_client_pool.go b/internal/nodes/http_client_pool.go index 5952724..db92a45 100644 --- a/internal/nodes/http_client_pool.go +++ b/internal/nodes/http_client_pool.go @@ -75,11 +75,11 @@ func (this *HTTPClientPool) Client(req *HTTPRequest, origin *serverconfigs.Origi numberCPU = 8 } if maxConnections <= 0 { - maxConnections = numberCPU * 8 + maxConnections = numberCPU * 32 } if idleConns <= 0 { - idleConns = numberCPU * 4 + idleConns = numberCPU * 8 } //logs.Println("[ORIGIN]max connections:", maxConnections)