未验证 提交 7d723abd 编写于 作者: X xige-16 提交者: GitHub

Start balanceLoop when Params.autoBalance equal to true (#12660)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 d755c26a
......@@ -100,7 +100,7 @@ queryCoord:
address: localhost
port: 19531
autoHandoff: true
autoBalance: false
autoBalance: true
overloadedMemoryThresholdPercentage: 90
balanceIntervalSeconds: 60
memoryUsageMaxDifferencePercentage: 30
......
......@@ -202,8 +202,10 @@ func (qc *QueryCoord) Start() error {
qc.loopWg.Add(1)
go qc.watchHandoffSegmentLoop()
qc.loopWg.Add(1)
go qc.loadBalanceSegmentLoop()
if Params.AutoBalance {
qc.loopWg.Add(1)
go qc.loadBalanceSegmentLoop()
}
go qc.session.LivenessCheck(qc.loopCtx, func() {
log.Error("Query Coord disconnected from etcd, process will exit", zap.Int64("Server Id", qc.session.ServerID))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册