This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch xingtanzjr/write_opt
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/xingtanzjr/write_opt by this
push:
new 0b5706e26b change DataRegion per storage group to 1
0b5706e26b is described below
commit 0b5706e26b8a43b4b97086acac6453cf985aa8af
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Mon Jun 20 12:36:24 2022 +0800
change DataRegion per storage group to 1
---
.../org/apache/iotdb/confignode/manager/PartitionManager.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git
a/confignode/src/main/java/org/apache/iotdb/confignode/manager/PartitionManager.java
b/confignode/src/main/java/org/apache/iotdb/confignode/manager/PartitionManager.java
index 718960d541..c9b267a058 100644
---
a/confignode/src/main/java/org/apache/iotdb/confignode/manager/PartitionManager.java
+++
b/confignode/src/main/java/org/apache/iotdb/confignode/manager/PartitionManager.java
@@ -324,13 +324,7 @@ public class PartitionManager {
getNodeManager().getOnlineDataNodeCount()
/
ConfigNodeDescriptor.getInstance().getConf().getSchemaReplicationFactor());
} else {
- regionNum =
- Math.max(
- 2,
- (int)
- (getNodeManager().getTotalCpuCoreCount()
- * 0.3
- /
ConfigNodeDescriptor.getInstance().getConf().getDataReplicationFactor()));
+ regionNum = 1;
}
// Do Region allocation for those StorageGroups who get the particle