rkljw пре 3 дана
родитељ
комит
33c82a4751
1 измењених фајлова са 13 додато и 0 уклоњено
  1. 13 0
      config/autoload/services.php

+ 13 - 0
config/autoload/services.php

@@ -152,6 +152,19 @@ return [
             'nodes' => [
                 ['host' => '127.0.0.1', 'port' => 9510],
             ],
+            'options' => [
+                'connect_timeout' => 500.0, // 连接超时时间,单位为秒
+                'read_timeout' => 100.0, // 读取超时时间,单位为秒
+                'write_timeout' => 100.0, // 写入超时时间,单位为秒
+            ],
+            'pool' => [
+                'min_connections' => 1,
+                'max_connections' => 30,
+                'connect_timeout' => 100.0, // 连接池连接超时时间,单位为秒
+                'wait_timeout' => 30.0, // 等待连接池可用连接的超时时间,单位为秒
+                'heartbeat' => -1, // 心跳检测间隔,-1 表示禁用心跳检测
+                'max_idle_time' => 60.0, // 连接的最大空闲时间,单位为秒
+            ],
         ],
         [
             //全局表单服务