From c364da00dd3b0aaac32838406d5ee13b2606d941 Mon Sep 17 00:00:00 2001 From: "alan578.zhao" <956322745@qq.com> Date: Mon, 24 Jun 2024 15:48:57 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E9=9B=86=E7=BE=A4?= =?UTF-8?q?=E6=9C=80=E5=B0=91=E5=AD=98=E6=B4=BBstore=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/apache/hugegraph/pd/config/PDConfig.java | 2 +- .../hg-pd-dist/src/assembly/static/conf/application.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/config/PDConfig.java b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/config/PDConfig.java index abc54a94dc..fc22647253 100644 --- a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/config/PDConfig.java +++ b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/config/PDConfig.java @@ -47,7 +47,7 @@ public class PDConfig { private long patrolInterval = 300; //巡查任务时间间隔 @Value("${pd.data-path}") private String dataPath; - @Value("${pd.initial-store-count:3}") + @Value("${pd.min-store-count:3}") private int minStoreCount; // 初始store列表,该列表内的store自动激活 diff --git a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml index 0e51109be5..65dee5a13c 100644 --- a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml +++ b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml @@ -48,8 +48,8 @@ pd: data-path: ./pd_data # 自动扩容的检查周期,定时检查每个 store 的分区数量,自动进行分区数量平衡 patrol-interval: 1800 - # 初始 store 列表,在列表内的 store 自动激活 - initial-store-count: 1 + # 可以接受最少存活的store节点数量,少于该数值整个集群不可用 + min-store-count: 1 # grpc IP:grpc port initial-store-list: 127.0.0.1:8500