Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = names.NodeResource
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeResource ¶
type NodeResource struct{}
func (*NodeResource) Name ¶
func (pl *NodeResource) Name() string
func (*NodeResource) Score ¶
func (pl *NodeResource) Score(ctx context.Context, state *framework.CycleState, _ api.VirtualMachineCreateOptions, nodeInfo *framework.NodeInfo) (int64, *framework.Status)
score = 1/(cpu/maxcpu * mem/maxmem)
Click to show internal directories.
Click to hide internal directories.