Documentation
¶
Index ¶
- Constants
- func New(arguments framework.Arguments) framework.Plugin
- type NodeOrderPlugin
- func (pp *NodeOrderPlugin) BatchNodeOrderFn(task *api.TaskInfo, nodeInfo []*api.NodeInfo, state *k8sframework.CycleState) (map[string]float64, error)
- func (pp *NodeOrderPlugin) InitPlugin()
- func (pp *NodeOrderPlugin) Name() string
- func (pp *NodeOrderPlugin) NodeOrderFn(task *api.TaskInfo, node *api.NodeInfo, k8sNodeInfo fwk.NodeInfo, ...) (float64, error)
- func (pp *NodeOrderPlugin) OnSessionClose(ssn *framework.Session)
- func (pp *NodeOrderPlugin) OnSessionOpen(ssn *framework.Session)
- type ScorePluginWithWeight
Constants ¶
View Source
const ( // PluginName indicates name of volcano scheduler plugin. PluginName = "nodeorder" // NodeAffinityWeight is the key for providing Node Affinity Priority Weight in YAML NodeAffinityWeight = "nodeaffinity.weight" // PodAffinityWeight is the key for providing Pod Affinity Priority Weight in YAML PodAffinityWeight = "podaffinity.weight" // LeastRequestedWeight is the key for providing Least Requested Priority Weight in YAML LeastRequestedWeight = "leastrequested.weight" // BalancedResourceWeight is the key for providing Balanced Resource Priority Weight in YAML BalancedResourceWeight = "balancedresource.weight" // MostRequestedWeight is the key for providing Most Requested Priority Weight in YAML MostRequestedWeight = "mostrequested.weight" // TaintTolerationWeight is the key for providing Taint Toleration Priority Weight in YAML TaintTolerationWeight = "tainttoleration.weight" // ImageLocalityWeight is the key for providing Image Locality Priority Weight in YAML ImageLocalityWeight = "imagelocality.weight" // PodTopologySpreadWeight is the key for providing Pod Topology Spread Priority Weight in YAML PodTopologySpreadWeight = "podtopologyspread.weight" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeOrderPlugin ¶ added in v1.14.0
type NodeOrderPlugin struct {
Handle fwk.Handle
ScorePlugins map[string]nodescore.BaseScorePlugin
NodeOrderScorePlugins map[string]ScorePluginWithWeight
// contains filtered or unexported fields
}
func (*NodeOrderPlugin) BatchNodeOrderFn ¶ added in v1.14.0
func (pp *NodeOrderPlugin) BatchNodeOrderFn(task *api.TaskInfo, nodeInfo []*api.NodeInfo, state *k8sframework.CycleState) (map[string]float64, error)
func (*NodeOrderPlugin) InitPlugin ¶ added in v1.14.0
func (pp *NodeOrderPlugin) InitPlugin()
func (*NodeOrderPlugin) Name ¶ added in v1.14.0
func (pp *NodeOrderPlugin) Name() string
func (*NodeOrderPlugin) NodeOrderFn ¶ added in v1.14.0
func (pp *NodeOrderPlugin) NodeOrderFn(task *api.TaskInfo, node *api.NodeInfo, k8sNodeInfo fwk.NodeInfo, state *k8sframework.CycleState) (float64, error)
func (*NodeOrderPlugin) OnSessionClose ¶ added in v1.14.0
func (pp *NodeOrderPlugin) OnSessionClose(ssn *framework.Session)
func (*NodeOrderPlugin) OnSessionOpen ¶ added in v1.14.0
func (pp *NodeOrderPlugin) OnSessionOpen(ssn *framework.Session)
type ScorePluginWithWeight ¶ added in v1.14.0
type ScorePluginWithWeight struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.