cpumgrx

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuMgrx

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

func NewFromParams

func NewFromParams(params Params) (*CpuMgrx, error)

func (*CpuMgrx) GetPolicyName

func (cmx *CpuMgrx) GetPolicyName() string

func (*CpuMgrx) GetTopologyHints added in v0.0.8

func (cmx *CpuMgrx) GetTopologyHints(pod *v1.Pod) map[string][]topologymanager.TopologyHint

func (*CpuMgrx) Run

func (cmx *CpuMgrx) Run(pod *v1.Pod) (cpuset.CPUSet, error)

func (*CpuMgrx) String

func (cmx *CpuMgrx) String() string

type Params

type Params struct {
	PolicyName         string
	TMPolicyName       string
	Hint               topologymanager.TopologyHint
	MachineInfo        *cadvisorapi.MachineInfo
	ReservedCPUQty     resource.Quantity
	ReservedCPUSet     cpuset.CPUSet
	StateFileDirectory string
}

Jump to

Keyboard shortcuts

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