Documentation ¶
Index ¶
- Constants
- func NewLoadAware(laArgs runtime.Object, h handle.PodFrameworkHandle) (framework.Plugin, error)
- type LoadAware
- func (la LoadAware) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (la *LoadAware) Name() string
- func (la *LoadAware) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (la *LoadAware) ScoreExtensions() framework.ScoreExtensions
- type ResourceTypeNameToWeightMap
Constants ¶
View Source
const (
Name = "LoadAware"
)
Variables ¶
This section is empty.
Functions ¶
func NewLoadAware ¶
NewLoadAware initializes a new plugin and returns it.
Types ¶
type LoadAware ¶
type LoadAware struct {
// contains filtered or unexported fields
}
LoadAware is a score plugin that favors nodes with low resource realtime utilization.
func (*LoadAware) Score ¶
func (la *LoadAware) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the Score extension point.
func (*LoadAware) ScoreExtensions ¶
func (la *LoadAware) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
type ResourceTypeNameToWeightMap ¶
type ResourceTypeNameToWeightMap map[podutil.PodResourceType]resourceToWeightMap
ResourceTypeNameToWeightMap contains resource name, resource type and weight.
func GenerateResourceTypeNameToWeightMap ¶
func GenerateResourceTypeNameToWeightMap(resources []config.ResourceSpec) ResourceTypeNameToWeightMap
Click to show internal directories.
Click to hide internal directories.