qrm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUQRMPluginConfig

type CPUQRMPluginConfig struct {
	// PolicyName is used to switch between several strategies
	PolicyName string
	// EnableSysAdvisor indicates whether to enable sys-advisor module to calculate cpu resources
	EnableSysAdvisor bool
	// ReservedCPUCores indicates reserved cpus number for system agents
	ReservedCPUCores int
	// skip cpu state corruption and it will be used after updating state properties
	SkipCPUStateCorruption bool
}

func NewCPUQRMPluginConfig

func NewCPUQRMPluginConfig() *CPUQRMPluginConfig

func (*CPUQRMPluginConfig) ApplyConfiguration

func (c *CPUQRMPluginConfig) ApplyConfiguration(_ *dynamic.DynamicConfigCRD)

type GenericQRMPluginConfiguration

type GenericQRMPluginConfiguration struct {
	StateFileDirectory    string
	QRMPluginSocketDirs   []string
	ExtraStateFileAbsPath string
}

func NewGenericQRMPluginConfiguration

func NewGenericQRMPluginConfiguration() *GenericQRMPluginConfiguration

func (*GenericQRMPluginConfiguration) ApplyConfiguration

func (c *GenericQRMPluginConfiguration) ApplyConfiguration(_ *dynamic.DynamicConfigCRD)

type MemoryQRMPluginConfig

type MemoryQRMPluginConfig struct {
	// PolicyName is used to switch between several strategies
	PolicyName string
	// ReservedMemoryGB: the total reserved memories in GB
	ReservedMemoryGB uint64
	// skip memory state corruption and it will be used after updating state properties
	SkipMemoryStateCorruption bool
}

func NewMemoryQRMPluginConfig

func NewMemoryQRMPluginConfig() *MemoryQRMPluginConfig

func (*MemoryQRMPluginConfig) ApplyConfiguration

func (c *MemoryQRMPluginConfig) ApplyConfiguration(_ *dynamic.DynamicConfigCRD)

type QRMPluginsConfiguration

type QRMPluginsConfiguration struct {
	*CPUQRMPluginConfig
	*MemoryQRMPluginConfig
}

func NewQRMPluginsConfiguration

func NewQRMPluginsConfiguration() *QRMPluginsConfiguration

func (*QRMPluginsConfiguration) ApplyConfiguration

func (c *QRMPluginsConfiguration) ApplyConfiguration(conf *dynamic.DynamicConfigCRD)

Jump to

Keyboard shortcuts

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