This is an automated email from the ASF dual-hosted git repository. tanxinyu pushed a commit to branch master_performance in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit e4149e3137414b0ce9b3524d111d03ebbffac8c2 Author: LebronAl <[email protected]> AuthorDate: Thu Dec 9 17:12:50 2021 +0800 balance --- cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java b/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java index 4303467..ac4851a 100644 --- a/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java +++ b/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java @@ -258,6 +258,8 @@ public class ClusterIoTDB implements ClusterIoTDBMBean { return; } + preStartCustomize(); + // we start IoTDB kernel first. then we start the cluster module. if (MODE_START.equals(mode)) { cluster.activeStartNodeMode(); @@ -529,7 +531,7 @@ public class ClusterIoTDB implements ClusterIoTDBMBean { /** Developers may perform pre-start customizations here for debugging or experiments. */ @SuppressWarnings("java:S125") // leaving examples - private void preStartCustomize() { + private static void preStartCustomize() { // customize data distribution // The given example tries to divide storage groups like "root.sg_1", "root.sg_2"... into k // nodes evenly, and use default strategy for other groups
