Documentation ¶
Index ¶
- Constants
- func New(args runtime.Object, handle framework.Handle) (framework.Plugin, error)
- type Plugin
- func (p *Plugin) EventsToRegister() []framework.ClusterEventWithHint
- func (p *Plugin) Filter(ctx context.Context, state *framework.CycleState, pod *corev1.Pod, ...) *framework.Status
- func (p *Plugin) Name() string
- func (p *Plugin) Reserve(ctx context.Context, state *framework.CycleState, pod *corev1.Pod, ...) *framework.Status
- func (p *Plugin) Score(ctx context.Context, state *framework.CycleState, pod *corev1.Pod, ...) (int64, *framework.Status)
- func (p *Plugin) ScoreExtensions() framework.ScoreExtensions
- func (p *Plugin) Unreserve(ctx context.Context, state *framework.CycleState, pod *corev1.Pod, ...)
Constants ¶
View Source
const ( Name = "LoadAwareScheduling" ErrReasonNodeMetricExpired = "node(s) nodeMetric expired" ErrReasonUsageExceedThreshold = "node(s) %s usage exceed threshold" ErrReasonAggregatedUsageExceedThreshold = "node(s) %s aggregated usage exceed threshold" ErrReasonFailedEstimatePod )
View Source
const ( // DefaultMilliCPURequest defines default milli cpu request number. DefaultMilliCPURequest int64 = 250 // 0.25 core // DefaultMemoryRequest defines default memory request size. DefaultMemoryRequest int64 = 200 * 1024 * 1024 // 200 MB // DefaultNodeMetricReportInterval defines the default koodlet report NodeMetric interval. DefaultNodeMetricReportInterval = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) EventsToRegister ¶ added in v1.3.0
func (p *Plugin) EventsToRegister() []framework.ClusterEventWithHint
func (*Plugin) ScoreExtensions ¶
func (p *Plugin) ScoreExtensions() framework.ScoreExtensions
Click to show internal directories.
Click to hide internal directories.