Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultAlgorithm is a rule-based scheduling algorithm. DefaultAlgorithm = "default" // MLAlgorithm is a machine learning scheduling algorithm. MLAlgorithm = "ml" // PluginAlgorithm is a scheduling algorithm based on plugin extension. PluginAlgorithm = "plugin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator interface { // EvaluateParents sort parents by evaluating multiple feature scores. EvaluateParents(parents []*resource.Peer, child *resource.Peer, taskPieceCount int32) []*resource.Peer // IsBadNode determine if peer is a failed node. IsBadNode(peer *resource.Peer) bool }
Evaluator is an interface that evaluates the parents.
func LoadPlugin ¶
Click to show internal directories.
Click to hide internal directories.