MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / SchedulingStrategy

Interface SchedulingStrategy

cluster/meta/scheduler.go:33–36  ·  view source on GitHub ↗

SchedulingStrategy is the interface that wraps the basic SelectNode method.

Source from the content-addressed store, hash-verified

31
32// SchedulingStrategy is the interface that wraps the basic SelectNode method.
33type SchedulingStrategy interface {
34 // SelectNode selects num node to schedule the key.
35 SelectNode(nodes []*NodeStatus, key []byte, num int) (*NodeStatus, error)
36}
37
38// SetSchedulingStrategy sets the scheduling strategy.
39func (s *Scheduler) SetSchedulingStrategy(strategy SchedulingStrategy) {

Callers

nothing calls this directly

Implementers 1

RoundRobinSchedulercluster/meta/round_robin.go

Calls

no outgoing calls

Tested by

no test coverage detected