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 { // Evaluate todo Normalization Evaluate(parent *supervisor.Peer, child *supervisor.Peer, taskPieceCount int32) float64 // NeedAdjustParent determine whether the peer needs a new parent node NeedAdjustParent(peer *supervisor.Peer) bool // IsBadNode determine if peer is a failed node IsBadNode(peer *supervisor.Peer) bool }
func LoadPlugin ¶ added in v2.0.1
func NewEvaluatorBase ¶ added in v2.0.1
func NewEvaluatorBase() Evaluator
Click to show internal directories.
Click to hide internal directories.