From ce5cb3c0c56187f390b4fdaff951b8d8116e08b7 Mon Sep 17 00:00:00 2001 From: MrPresent-Han <116052805+MrPresent-Han@users.noreply.github.com> Date: Fri, 16 Jun 2023 14:00:45 +0800 Subject: [PATCH] [skip e2e] modify default used balancer for 2.3 (#24937) Signed-off-by: MrPresent-Han --- configs/milvus.yaml | 2 +- pkg/util/paramtable/component_param.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 84ee4a2257..7dd7f890c8 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -190,7 +190,7 @@ proxy: queryCoord: autoHandoff: true # Enable auto handoff autoBalance: true # Enable auto balance - balancer: RowCountBasedBalancer # Balancer to use + balancer: ScoreBasedBalancer # Balancer to use globalRowCountFactor: 0.1 # expert parameters, only used by scoreBasedBalancer scoreUnbalanceTolerationFactor: 0.05 # expert parameters, only used by scoreBasedBalancer reverseUnBalanceTolerationFactor: 1.3 #expert parameters, only used by scoreBasedBalancer diff --git a/pkg/util/paramtable/component_param.go b/pkg/util/paramtable/component_param.go index deaaaaa524..93dd489059 100644 --- a/pkg/util/paramtable/component_param.go +++ b/pkg/util/paramtable/component_param.go @@ -1192,8 +1192,8 @@ func (p *queryCoordConfig) init(base *BaseTable) { p.Balancer = ParamItem{ Key: "queryCoord.balancer", Version: "2.0.0", - DefaultValue: "RowCountBasedBalancer", - PanicIfEmpty: true, + DefaultValue: "ScoreBasedBalancer", + PanicIfEmpty: false, Doc: "auto balancer used for segments on queryNodes", Export: true, }