Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scorer ¶
type Scorer interface { // Start starts the Scorer goroutines Start() error // Stop stops the Scorer goroutines Stop() error // GetHostsByScores returns a list of hosts with the lowest scores GetHostsByScores(numHosts uint32) []string }
Scorer provides the abstraction to calculate host scores
func NewBatchScorer ¶
func NewBatchScorer( enableHostScorer bool, hostClient hostsvc.HostServiceYARPCClient) Scorer
NewBatchScorer creates a new batch scorer which sorts the batch hosts by the host scores calcuated from host metrics
Click to show internal directories.
Click to hide internal directories.