shmscoring

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ShmScoring"

Variables

This section is empty.

Functions

Types

type NodeMetric

type NodeMetric struct {
	ShmSum      int64
	ShmDiskUsed int64
	ShmDiskFree int64
	ShmDiskAll  int64
	ModelCount  int
	Models      []string
}

type ShmScoring

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

func (*ShmScoring) Name

func (s *ShmScoring) Name() string

func (*ShmScoring) NormalizeScore

func (s *ShmScoring) NormalizeScore(
	ctx context.Context,
	state *framework.CycleState,
	pod *v1.Pod,
	scores framework.NodeScoreList,
) *framework.Status

func (*ShmScoring) Score

func (s *ShmScoring) Score(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (int64, *framework.Status)

func (*ShmScoring) ScoreExtensions

func (s *ShmScoring) ScoreExtensions() framework.ScoreExtensions

type ShmmConnector

type ShmmConnector struct {
	Targets map[string]config.ShmScoringTarget
}

func NewShmmConnector

func NewShmmConnector(targets []config.ShmScoringTarget) *ShmmConnector

func (*ShmmConnector) GetNodeMetric

func (s *ShmmConnector) GetNodeMetric(nodeName string) (NodeMetric, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL