mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
issue: #33285 - add two grpc resolver (by session and by streaming coord assignment service) - add one grpc balancer (by serverID and roundrobin) - add lazy conn to avoid block by first service discovery - add some utility function for streaming service Signed-off-by: chyezh <chyezh@outlook.com>
25 lines
767 B
Go
25 lines
767 B
Go
package manager
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/streaming/util/types"
|
|
)
|
|
|
|
type ManagerClient interface {
|
|
// WatchNodeChanged returns a channel that receive a node change.
|
|
WatchNodeChanged(ctx context.Context) (<-chan struct{}, error)
|
|
|
|
// CollectStatus collects status of all wal instances in all streamingnode.
|
|
CollectAllStatus(ctx context.Context) (map[int64]*types.StreamingNodeStatus, error)
|
|
|
|
// Assign a wal instance for the channel on log node of given server id.
|
|
Assign(ctx context.Context, pchannel types.PChannelInfoAssigned) error
|
|
|
|
// Remove the wal instance for the channel on log node of given server id.
|
|
Remove(ctx context.Context, pchannel types.PChannelInfoAssigned) error
|
|
|
|
// Close closes the manager client.
|
|
Close()
|
|
}
|