mirror of https://github.com/milvus-io/milvus.git
enhance: Shuffle candidates before channel assignment (#30066)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/30083/head
parent
04e21564b6
commit
4c93912135
|
@ -77,6 +77,7 @@ func (b *RowCountBasedBalancer) AssignSegment(collectionID int64, segments []*me
|
|||
// try to make every query node has channel count
|
||||
func (b *RowCountBasedBalancer) AssignChannel(channels []*meta.DmChannel, nodes []int64) []ChannelAssignPlan {
|
||||
nodeItems := b.convertToNodeItemsByChannel(nodes)
|
||||
nodeItems = lo.Shuffle(nodeItems)
|
||||
if len(nodeItems) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue