kubernetesk8s.io/kubernetes/pkg/scheduler/framework/plugins/requestedtocapacityratio Index | Files

package requestedtocapacityratio

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/requestedtocapacityratio"

Index

Constants

const Name = "RequestedToCapacityRatio"

Name of this plugin.

Functions

func New

New initializes a new plugin and returns it.

Types

type Args

type Args struct {
	FunctionShape       priorities.FunctionShape
	ResourceToWeightMap priorities.ResourceToWeightMap
}

Args holds the args that are used to configure the plugin.

type RequestedToCapacityRatio

type RequestedToCapacityRatio struct {
	// contains filtered or unexported fields
}

RequestedToCapacityRatio is a score plugin that allow users to apply bin packing on core resources like CPU, Memory as well as extended resources like accelerators.

func (*RequestedToCapacityRatio) Name

func (pl *RequestedToCapacityRatio) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*RequestedToCapacityRatio) Score

Score invoked at the score extension point.

func (*RequestedToCapacityRatio) ScoreExtensions

func (pl *RequestedToCapacityRatio) ScoreExtensions() framework.ScoreExtensions

ScoreExtensions of the Score plugin.

Source Files

requested_to_capacity_ratio.go

Version
v1.17.12-rc.0
Published
Aug 13, 2020
Platform
js/wasm
Imports
7 packages
Last checked
6 minutes ago

Tools for package owners.