mirror of https://github.com/milvus-io/milvus.git
Signed-off-by: MrPresent-Han <jamesharden11122@gmail.com>pull/21555/head
parent
73d8509600
commit
6fb3542f2a
|
@ -43,6 +43,9 @@ func (b *BalanceChecker) Description() string {
|
|||
|
||||
func (b *BalanceChecker) Check(ctx context.Context) []task.Task {
|
||||
ret := make([]task.Task, 0)
|
||||
if !Params.QueryCoordCfg.AutoBalance.GetAsBool() {
|
||||
return ret
|
||||
}
|
||||
segmentPlans, channelPlans := b.Balance.Balance()
|
||||
|
||||
tasks := balance.CreateSegmentTasksFromPlans(ctx, b.ID(), Params.QueryCoordCfg.SegmentTaskTimeout.GetAsDuration(time.Millisecond), segmentPlans)
|
||||
|
|
Loading…
Reference in New Issue