resmanager

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LSRResctrlGroup is the name of LSR resctrl group
	LSRResctrlGroup = "LSR"
	// LSResctrlGroup is the name of LS resctrl group
	LSResctrlGroup = "LS"
	// BEResctrlGroup is the name of BE resctrl group
	BEResctrlGroup = "BE"
	// UnknownResctrlGroup is the resctrl group which is unknown to reconcile
	UnknownResctrlGroup = "Unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUBurst added in v0.3.0

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

func NewCPUBurst added in v0.3.0

func NewCPUBurst(r *resmanager) *CPUBurst

func (*CPUBurst) Recycle added in v0.3.0

func (b *CPUBurst) Recycle()

type CPUEvictor added in v0.4.0

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

func NewCPUEvictor added in v0.4.0

func NewCPUEvictor(resmanager *resmanager) *CPUEvictor

type CPUSuppress

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

func NewCPUSuppress

func NewCPUSuppress(r *resmanager) *CPUSuppress

func (*CPUSuppress) RunInit added in v1.1.0

func (r *CPUSuppress) RunInit(stopCh <-chan struct{}) error

type CgroupResourcesReconcile added in v0.3.0

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

func NewCgroupResourcesReconcile added in v0.3.0

func NewCgroupResourcesReconcile(resmanager *resmanager) *CgroupResourcesReconcile

func (*CgroupResourcesReconcile) RunInit added in v0.3.0

func (m *CgroupResourcesReconcile) RunInit(stopCh <-chan struct{}) error

type Config

type Config struct {
	ReconcileIntervalSeconds   int
	CPUSuppressIntervalSeconds int
	CPUEvictIntervalSeconds    int
	MemoryEvictIntervalSeconds int
	MemoryEvictCoolTimeSeconds int
	CPUEvictCoolTimeSeconds    int
	QOSExtensionCfg            *plugins.QOSExtensionConfig
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) InitFlags

func (c *Config) InitFlags(fs *flag.FlagSet)

type MemoryEvictor added in v0.2.0

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

func NewMemoryEvictor added in v0.2.0

func NewMemoryEvictor(mgr *resmanager) *MemoryEvictor

type ResManager

type ResManager interface {
	Run(stopCh <-chan struct{}) error
}

func NewResManager

func NewResManager(cfg *Config, schema *apiruntime.Scheme, kubeClient clientset.Interface, crdClient *koordclientset.Clientset, nodeName string,
	statesInformer statesinformer.StatesInformer, metricCache metriccache.MetricCache, collectResUsedIntervalSeconds int64) ResManager

type ResctrlReconcile added in v0.3.0

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

func NewResctrlReconcile added in v0.3.0

func NewResctrlReconcile(resManager *resmanager) *ResctrlReconcile

func (*ResctrlReconcile) RunInit added in v0.3.0

func (r *ResctrlReconcile) RunInit(stopCh <-chan struct{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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