From 45fbe1d1a7674fb86829e41e1894612ffa15268e Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Thu, 27 Apr 2023 22:20:35 +0800 Subject: [PATCH] Change proxy max shard num (#23777) Signed-off-by: lixinguo Co-authored-by: lixinguo --- configs/milvus.yaml | 2 +- pkg/util/paramtable/component_param.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index add1aca542..968e279e25 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -146,7 +146,7 @@ proxy: # As of today (2.2.0 and after) it is strongly DISCOURAGED to set maxFieldNum >= 64. # So adjust at your risk! maxFieldNum: 64 - maxShardNum: 64 # Maximum number of shards in a collection + maxShardNum: 16 # Maximum number of shards in a collection maxDimension: 32768 # Maximum dimension of a vector # Whether to produce gin logs.\n # please adjust in embedded Milvus: false diff --git a/pkg/util/paramtable/component_param.go b/pkg/util/paramtable/component_param.go index d90ae2117f..6e61e71cbd 100644 --- a/pkg/util/paramtable/component_param.go +++ b/pkg/util/paramtable/component_param.go @@ -949,7 +949,7 @@ So adjust at your risk!`, p.MaxShardNum = ParamItem{ Key: "proxy.maxShardNum", - DefaultValue: "64", + DefaultValue: "16", Version: "2.0.0", PanicIfEmpty: true, Doc: "Maximum number of shards in a collection",