From a36b1bdddf341cb279480c75c7f1bb12e7903ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 18:51:27 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 144 +++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index 1e4b256..c201c61 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,8 +31,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -66,8 +66,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -101,8 +101,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -137,8 +137,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -172,8 +172,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -207,8 +207,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -243,8 +243,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -282,8 +282,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -318,8 +318,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -354,8 +354,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -390,8 +390,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -425,8 +425,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -460,8 +460,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -495,8 +495,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -530,8 +530,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -565,8 +565,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -600,8 +600,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -635,8 +635,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -670,8 +670,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -705,8 +705,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -740,8 +740,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -775,8 +775,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -810,8 +810,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -845,8 +845,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -880,8 +880,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -915,8 +915,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -950,8 +950,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -985,8 +985,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1020,8 +1020,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1055,8 +1055,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1091,8 +1091,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1127,8 +1127,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1163,8 +1163,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1198,8 +1198,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1234,8 +1234,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1269,8 +1269,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 500, // 最大连接数 - 'min_connections' => 20, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 From 89e08a3d44cc19cacb7f7b3627790eeed3a1d1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 18:54:50 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index c201c61..30578ca 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,7 +31,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -66,7 +66,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -101,7 +101,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -137,7 +137,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -172,7 +172,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -207,7 +207,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -243,7 +243,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -282,7 +282,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -318,7 +318,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -354,7 +354,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -390,7 +390,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -425,7 +425,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -460,7 +460,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -495,7 +495,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -530,7 +530,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -565,7 +565,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -600,7 +600,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -635,7 +635,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -670,7 +670,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -705,7 +705,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -740,7 +740,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -775,7 +775,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -810,7 +810,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -845,7 +845,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -880,7 +880,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -915,7 +915,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -950,7 +950,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -985,7 +985,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1020,7 +1020,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1055,7 +1055,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1091,7 +1091,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1127,7 +1127,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1163,7 +1163,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1198,7 +1198,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1234,7 +1234,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1269,7 +1269,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 100, // 最大连接数 + 'max_connections' => 80, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 From 170447db0d039a42e60c410bf0a05e0ad6f42e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 18:56:32 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index 30578ca..1b4ff27 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,7 +31,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -66,7 +66,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -101,7 +101,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -137,7 +137,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -172,7 +172,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -207,7 +207,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -243,7 +243,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -282,7 +282,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -318,7 +318,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -354,7 +354,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -390,7 +390,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -425,7 +425,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -460,7 +460,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -495,7 +495,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -530,7 +530,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -565,7 +565,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -600,7 +600,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -635,7 +635,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -670,7 +670,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -705,7 +705,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -740,7 +740,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -775,7 +775,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -810,7 +810,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -845,7 +845,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -880,7 +880,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -915,7 +915,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -950,7 +950,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -985,7 +985,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1020,7 +1020,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1055,7 +1055,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1091,7 +1091,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1127,7 +1127,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1163,7 +1163,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1198,7 +1198,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1234,7 +1234,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1269,7 +1269,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 80, // 最大连接数 + 'max_connections' => 30, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 From d4b7cfc1050a4fffa109eb3d35ce05251b864482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:02:23 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/library/DatabaseRoute.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/common/library/DatabaseRoute.php b/app/common/library/DatabaseRoute.php index ecc64b5..cae05e4 100644 --- a/app/common/library/DatabaseRoute.php +++ b/app/common/library/DatabaseRoute.php @@ -161,7 +161,6 @@ class DatabaseRoute ->page($currPage, $pageSize) ->select() ->toArray(); - $query->getConnection()->close(); return [ 'totalCount' => $totalCount, @@ -204,7 +203,6 @@ class DatabaseRoute // 不要order,避免报错 $query->removeOption('order'); $count = $query->count(); - $query->getConnection()->close(); $counts[$connName] = $count; $total += $count; } @@ -258,7 +256,6 @@ class DatabaseRoute ->limit($localOffset, $localLimit) ->select() ->toArray(); - $query->getConnection()->close(); $allRows = array_merge($allRows, $rows); @@ -375,7 +372,6 @@ class DatabaseRoute $query = Db::connect($connName)->name($table); $query = call_user_func($builder, $query); $deleted = $query->delete(); - $query->getConnection()->close(); $totalDeleted += $deleted; } @@ -415,13 +411,11 @@ class DatabaseRoute if (method_exists($query, $method)) { $result = call_user_func_array([$query, $method], $args); $finalResult = $result; - $query->getConnection()->close(); // find 返回 null,select 返回空数组,count 返回数字 if ($result || $result === 0) { return $result; } }else { - $query->getConnection()->close(); } } } @@ -436,7 +430,6 @@ class DatabaseRoute $result = call_user_func_array([$query, $method], $args); // find 返回 null,select 返回空数组,count 返回数字 $finalResult = $result; - $query->getConnection()->close(); if ($result instanceof Collection) { if (!$result->isEmpty()) { return $result; @@ -447,7 +440,6 @@ class DatabaseRoute return $result; } }else { - $query->getConnection()->close(); } } } From 0664016fe361f754e5cf2565c6a029b28ba43a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:11:33 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DbCoroutineContext.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/DbCoroutineContext.php b/app/DbCoroutineContext.php index 09d5602..fed0c6b 100644 --- a/app/DbCoroutineContext.php +++ b/app/DbCoroutineContext.php @@ -25,16 +25,16 @@ class DbCoroutineContext // put 存数据到 list public static function put(mixed $value): void { - $val = self::get('startTrans'); - if (!empty($val) && $val === true) { - $value->startTrans(); - } - $cid = self::getCid(); - if ($cid !== null) { - self::$list[$cid][] = $value; - } else { - self::$globalList[] = $value; - } +// $val = self::get('startTrans'); +// if (!empty($val) && $val === true) { +// $value->startTrans(); +// } +// $cid = self::getCid(); +// if ($cid !== null) { +// self::$list[$cid][] = $value; +// } else { +// self::$globalList[] = $value; +// } } // set 设置 key-value From 92548a4ba65f4e74261fa17ba2529e0566933545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:18:13 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DbCoroutineContext.php | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/app/DbCoroutineContext.php b/app/DbCoroutineContext.php index fed0c6b..baab437 100644 --- a/app/DbCoroutineContext.php +++ b/app/DbCoroutineContext.php @@ -25,16 +25,16 @@ class DbCoroutineContext // put 存数据到 list public static function put(mixed $value): void { -// $val = self::get('startTrans'); -// if (!empty($val) && $val === true) { -// $value->startTrans(); -// } -// $cid = self::getCid(); -// if ($cid !== null) { -// self::$list[$cid][] = $value; -// } else { -// self::$globalList[] = $value; -// } + $val = self::get('startTrans'); + if (!empty($val) && $val === true) { + $value->startTrans(); + } + $cid = self::getCid(); + if ($cid !== null) { + self::$list[$cid][] = $value; + } else { + self::$globalList[] = $value; + } } // set 设置 key-value @@ -83,14 +83,6 @@ class DbCoroutineContext public static function clearList() { - foreach (self::getList() as $conn) { - try { - $conn->query('SELECT 1'); - $conn->close(); - // 连接正常 - } catch (\Exception $e) { - } - } $cid = self::getCid(); if ($cid !== null) { unset(self::$list[$cid]); @@ -112,7 +104,6 @@ class DbCoroutineContext foreach (self::getList() as $conn) { try { $conn->query('SELECT 1'); - $conn->close(); // 连接正常 } catch (\Exception $e) { } From 8e73b7ab0fc36c36bf035a58ab6027e69e4e54ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:20:35 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index 1b4ff27..fcf2e12 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,7 +31,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -66,7 +66,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -101,7 +101,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -137,7 +137,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -172,7 +172,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -207,7 +207,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -243,7 +243,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -282,7 +282,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -318,7 +318,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -354,7 +354,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -390,7 +390,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -425,7 +425,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -460,7 +460,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -495,7 +495,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -530,7 +530,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -565,7 +565,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -600,7 +600,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -635,7 +635,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -670,7 +670,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -705,7 +705,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -740,7 +740,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -775,7 +775,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -810,7 +810,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -845,7 +845,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -880,7 +880,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -915,7 +915,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -950,7 +950,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -985,7 +985,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1020,7 +1020,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1055,7 +1055,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1091,7 +1091,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1127,7 +1127,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1163,7 +1163,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1198,7 +1198,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1234,7 +1234,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 @@ -1269,7 +1269,7 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 30, // 最大连接数 + 'max_connections' => 15, // 最大连接数 'min_connections' => 5, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 From 36946af590f8ba049c2d2381a51fe8a5cba3e589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:22:59 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 144 +++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index fcf2e12..3bab8c1 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,8 +31,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -66,8 +66,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -101,8 +101,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -137,8 +137,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -172,8 +172,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -207,8 +207,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -243,8 +243,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -282,8 +282,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -318,8 +318,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -354,8 +354,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -390,8 +390,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -425,8 +425,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -460,8 +460,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -495,8 +495,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -530,8 +530,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -565,8 +565,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -600,8 +600,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -635,8 +635,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -670,8 +670,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -705,8 +705,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -740,8 +740,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -775,8 +775,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -810,8 +810,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -845,8 +845,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -880,8 +880,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -915,8 +915,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -950,8 +950,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -985,8 +985,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1020,8 +1020,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1055,8 +1055,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1091,8 +1091,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1127,8 +1127,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1163,8 +1163,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1198,8 +1198,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1234,8 +1234,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1269,8 +1269,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 15, // 最大连接数 - 'min_connections' => 5, // 最小连接数 + 'max_connections' => 5, // 最大连接数 + 'min_connections' => 1, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 From fda14a12196a46ab278628e91e28bb23f63d0bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:45:52 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 144 +++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index 3bab8c1..dc536da 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,8 +31,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -66,8 +66,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -101,8 +101,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -137,8 +137,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -172,8 +172,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -207,8 +207,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -243,8 +243,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -282,8 +282,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -318,8 +318,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -354,8 +354,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -390,8 +390,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -425,8 +425,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -460,8 +460,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -495,8 +495,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -530,8 +530,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -565,8 +565,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -600,8 +600,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -635,8 +635,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -670,8 +670,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -705,8 +705,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -740,8 +740,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -775,8 +775,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -810,8 +810,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -845,8 +845,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -880,8 +880,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -915,8 +915,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -950,8 +950,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -985,8 +985,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1020,8 +1020,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1055,8 +1055,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1091,8 +1091,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1127,8 +1127,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1163,8 +1163,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1198,8 +1198,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1234,8 +1234,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1269,8 +1269,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒