You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2024/01/18 07:13:09 UTC
(iotdb) branch enhance_ratis_auto_balance created (now 647f10e9207)
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a change to branch enhance_ratis_auto_balance
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at 647f10e9207 finish
This branch includes the following new commits:
new 647f10e9207 finish
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iotdb) 01/01: finish
Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch enhance_ratis_auto_balance
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 647f10e9207139dbba319e16b2c193950b9af25a
Author: OneSizeFitQuorum <ta...@apache.org>
AuthorDate: Thu Jan 18 15:12:42 2024 +0800
finish
Signed-off-by: OneSizeFitQuorum <ta...@apache.org>
---
.../main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java | 2 +-
.../node-commons/src/assembly/resources/conf/iotdb-common.properties | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
index c755eb010cc..96af2b0e44a 100644
--- a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
+++ b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
@@ -192,7 +192,7 @@ public class ConfigNodeConfig {
private String leaderDistributionPolicy = ILeaderBalancer.MIN_COST_FLOW_POLICY;
/** Whether to enable auto leader balance for Ratis consensus protocol. */
- private boolean enableAutoLeaderBalanceForRatisConsensus = false;
+ private boolean enableAutoLeaderBalanceForRatisConsensus = true;
/** Whether to enable auto leader balance for IoTConsensus protocol. */
private boolean enableAutoLeaderBalanceForIoTConsensus = true;
diff --git a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-common.properties b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-common.properties
index 22c222e1457..ff610d355ce 100644
--- a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -139,7 +139,7 @@
# The ConfigNode-leader will balance the leader of Ratis-RegionGroups by leader_distribution_policy if set true.
# Notice: Default is false because the Ratis is unstable for this function.
# Datatype: Boolean
-# enable_auto_leader_balance_for_ratis_consensus=false
+# enable_auto_leader_balance_for_ratis_consensus=true
# Whether to enable auto leader balance for IoTConsensus protocol.
# The ConfigNode-leader will balance the leader of IoTConsensus-RegionGroups by leader_distribution_policy if set true.