From 189e3342ce2d39aceefe103059c8a6bae2e27167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 9 Jun 2022 19:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=BC=93=E5=AD=98maxOpenFiles?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=80=BC=E4=BB=8E2=E6=94=B9=E4=B8=BA4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/max_open_files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/caches/max_open_files.go b/internal/caches/max_open_files.go index d4a5638..dfcb30b 100644 --- a/internal/caches/max_open_files.go +++ b/internal/caches/max_open_files.go @@ -10,7 +10,7 @@ import ( ) const ( - minOpenFilesValue int32 = 2 + minOpenFilesValue int32 = 4 maxOpenFilesValue int32 = 65535 modeSlow int32 = 1 @@ -35,7 +35,7 @@ func NewMaxOpenFiles(step int32) *MaxOpenFiles { } var f = &MaxOpenFiles{ step: step, - maxOpenFiles: 2, + maxOpenFiles: minOpenFilesValue, } if teaconst.DiskIsFast { f.maxOpenFiles = 32