Skip to content

Commit

Permalink
enhance: [2.4] Set maxPartitionNum default value to 1024 (milvus-io#3…
Browse files Browse the repository at this point in the history
…3950)

Cherry-pick from master
pr: milvus-io#33949
See also milvus-io#30059

---------

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Jun 18, 2024
1 parent 79546a6 commit 60695bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/milvus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/paramtable/component_param.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/python_client/common/common_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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
Expand Down

0 comments on commit 60695bd

Please sign in to comment.