mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip e2e] Refine datacoord policy comment (#13794)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
This commit is contained in:
parent
43e535f3e8
commit
1848dae589
@ -29,15 +29,15 @@ import (
|
||||
"stathat.com/c/consistent"
|
||||
)
|
||||
|
||||
// RegisterPolicy decide the channels mapping after registering the nodeID
|
||||
// RegisterPolicy decides the channels mapping after registering the nodeID
|
||||
type RegisterPolicy func(store ROChannelStore, nodeID int64) ChannelOpSet
|
||||
|
||||
// EmptyRegister do nothing
|
||||
// EmptyRegister does nothing
|
||||
func EmptyRegister(store ROChannelStore, nodeID int64) ChannelOpSet {
|
||||
return nil
|
||||
}
|
||||
|
||||
// BufferChannelAssignPolicy assign buffer channels to new registered node
|
||||
// BufferChannelAssignPolicy assigns buffer channels to new registered node
|
||||
func BufferChannelAssignPolicy(store ROChannelStore, nodeID int64) ChannelOpSet {
|
||||
info := store.GetBufferChannelInfo()
|
||||
if info == nil || len(info.Channels) == 0 {
|
||||
@ -50,7 +50,7 @@ func BufferChannelAssignPolicy(store ROChannelStore, nodeID int64) ChannelOpSet
|
||||
return opSet
|
||||
}
|
||||
|
||||
// AvgAssignRegisterPolicy assign channels with average to new registered node
|
||||
// AvgAssignRegisterPolicy assigns channels with average to new registered node
|
||||
func AvgAssignRegisterPolicy(store ROChannelStore, nodeID int64) ChannelOpSet {
|
||||
opSet := BufferChannelAssignPolicy(store, nodeID)
|
||||
if len(opSet) != 0 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user