From 60695bdb448174661d82c80fd2db7acca49b48b3 Mon Sep 17 00:00:00 2001 From: congqixia Date: Tue, 18 Jun 2024 18:42:00 +0800 Subject: [PATCH] enhance: [2.4] Set maxPartitionNum default value to 1024 (#33950) Cherry-pick from master pr: #33949 See also #30059 --------- Signed-off-by: Congqi Xia --- configs/milvus.yaml | 2 +- pkg/util/paramtable/component_param.go | 2 +- tests/python_client/common/common_type.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index d7ff001cb3..035de8a59c 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -185,7 +185,7 @@ natsmq: # Related configuration of rootCoord, used to handle data definition language (DDL) and data control language (DCL) requests rootCoord: dmlChannelNum: 16 # The number of dml channels created at system startup - maxPartitionNum: 4096 # Maximum number of partitions in a collection + maxPartitionNum: 1024 # Maximum number of partitions in a collection minSegmentSizeToEnableIndex: 1024 # It's a threshold. When the segment size is less than this value, the segment will not be indexed enableActiveStandby: false maxDatabaseNum: 64 # Maximum number of database diff --git a/pkg/util/paramtable/component_param.go b/pkg/util/paramtable/component_param.go index ddb177fce6..f8472c298c 100644 --- a/pkg/util/paramtable/component_param.go +++ b/pkg/util/paramtable/component_param.go @@ -939,7 +939,7 @@ func (p *rootCoordConfig) init(base *BaseTable) { p.MaxPartitionNum = ParamItem{ Key: "rootCoord.maxPartitionNum", Version: "2.0.0", - DefaultValue: "4096", + DefaultValue: "1024", Doc: "Maximum number of partitions in a collection", Export: true, } diff --git a/tests/python_client/common/common_type.py b/tests/python_client/common/common_type.py index 45ad4b985b..15ebe44e20 100644 --- a/tests/python_client/common/common_type.py +++ b/tests/python_client/common/common_type.py @@ -15,7 +15,7 @@ default_limit = 10 default_batch_size = 1000 max_limit = 16384 max_top_k = 16384 -max_partition_num = 4096 +max_partition_num = 1024 max_role_num = 10 default_partition_num = 16 # default num_partitions for partition key feature default_segment_row_limit = 1000