Documentation ¶
Index ¶
- Constants
- func New(configuration *runtime.Unknown, f framework.FrameworkHandle) (framework.Plugin, error)
- type MetricsInfo
- type RealNodeLoad
- func (rnl *RealNodeLoad) Bind(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) *framework.Status
- func (rnl *RealNodeLoad) Filter(ctx context.Context, pc *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (rnl *RealNodeLoad) Name() string
- func (rnl *RealNodeLoad) NormalizeScore(ctx context.Context, state *framework.CycleState, p *v1.Pod, ...) *framework.Status
- func (rnl *RealNodeLoad) PreBind(ctx context.Context, pc *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
- func (rnl *RealNodeLoad) PreFilter(ctx context.Context, pc *framework.CycleState, pod *v1.Pod) *framework.Status
- func (rnl *RealNodeLoad) PreFilterExtensions() framework.PreFilterExtensions
- func (rnl *RealNodeLoad) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (rnl *RealNodeLoad) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const AnnotationPrefix = "caih.com/scheduler_"
View Source
const Name = "caihcloud-real-node-load-plugin"
插件名称
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricsInfo ¶
type RealNodeLoad ¶
type RealNodeLoad struct {
// contains filtered or unexported fields
}
func (*RealNodeLoad) Bind ¶
func (rnl *RealNodeLoad) Bind(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) *framework.Status
Bind skip this plugin because system scheduler has default bind plugin
func (*RealNodeLoad) Name ¶
func (rnl *RealNodeLoad) Name() string
func (*RealNodeLoad) NormalizeScore ¶
func (rnl *RealNodeLoad) NormalizeScore(ctx context.Context, state *framework.CycleState, p *v1.Pod, scores framework.NodeScoreList) *framework.Status
func (*RealNodeLoad) PreBind ¶
func (rnl *RealNodeLoad) PreBind(ctx context.Context, pc *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
func (*RealNodeLoad) PreFilter ¶
func (rnl *RealNodeLoad) PreFilter(ctx context.Context, pc *framework.CycleState, pod *v1.Pod) *framework.Status
func (*RealNodeLoad) PreFilterExtensions ¶
func (rnl *RealNodeLoad) PreFilterExtensions() framework.PreFilterExtensions
func (*RealNodeLoad) ScoreExtensions ¶
func (rnl *RealNodeLoad) ScoreExtensions() framework.ScoreExtensions
Click to show internal directories.
Click to hide internal directories.