mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-04 11:18:44 +08:00
enhance: Shuffle candidates before channel assignment (#30066)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user