hostmover

package
v0.0.0-...-ddc1a4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL