Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "RequestedToCapacityRatio"
Name of this plugin.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (pl *RequestedToCapacityRatio) Score(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the score extension point.
func (*RequestedToCapacityRatio) ScoreExtensions ¶
func (pl *RequestedToCapacityRatio) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.