mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
Start balanceLoop when Params.autoBalance equal to true (#12660)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
d755c26a88
commit
7d723abdff
@ -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()
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user