qrm

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUDynamicPolicyOptions added in v0.3.0

type CPUDynamicPolicyOptions struct {
	EnableCPUAdvisor          bool
	EnableCPUPressureEviction bool
	EnableSyncingCPUIdle      bool
	EnableCPUIdle             bool
}

type CPUNativePolicyOptions added in v0.3.0

type CPUNativePolicyOptions struct {
	EnableFullPhysicalCPUsOnly bool
	CPUAllocationOption        string
}

type CPUOptions

type CPUOptions struct {
	PolicyName             string
	ReservedCPUCores       int
	SkipCPUStateCorruption bool

	CPUDynamicPolicyOptions
	CPUNativePolicyOptions
}

func NewCPUOptions

func NewCPUOptions() *CPUOptions

func (*CPUOptions) AddFlags

func (o *CPUOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*CPUOptions) ApplyTo

func (o *CPUOptions) ApplyTo(conf *qrmconfig.CPUQRMPluginConfig) error

type GenericQRMPluginOptions

type GenericQRMPluginOptions struct {
	QRMPluginSocketDirs           []string
	StateFileDirectory            string
	ExtraStateFileAbsPath         string
	ReclaimRelativeRootCgroupPath string
	PodDebugAnnoKeys              []string
}

func NewGenericQRMPluginOptions

func NewGenericQRMPluginOptions() *GenericQRMPluginOptions

func (*GenericQRMPluginOptions) AddFlags

func (o *GenericQRMPluginOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*GenericQRMPluginOptions) ApplyTo

type MemoryOptions

type MemoryOptions struct {
	PolicyName                 string
	ReservedMemoryGB           uint64
	SkipMemoryStateCorruption  bool
	EnableSettingMemoryMigrate bool
	EnableMemoryAdvisor        bool
	ExtraControlKnobConfigFile string
}

func NewMemoryOptions

func NewMemoryOptions() *MemoryOptions

func (*MemoryOptions) AddFlags

func (o *MemoryOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*MemoryOptions) ApplyTo

type NetClassOptions added in v0.2.0

type NetClassOptions struct {
	// ReclaimedCores is the network class id for reclaimed_cores
	ReclaimedCores uint32
	// SharedCores is the network class id for shared_cores
	SharedCores uint32
	// DedicatedCores is the network class id for dedicated_cores
	DedicatedCores uint32
	// SystemCores is the network class id for system_cores
	SystemCores uint32
}

type NetworkOptions added in v0.2.0

type NetworkOptions struct {
	PolicyName                                      string
	NetClass                                        NetClassOptions
	ReservedBandwidth                               uint32
	EgressCapacityRate                              float32
	IngressCapacityRate                             float32
	SkipNetworkStateCorruption                      bool
	PodLevelNetClassAnnoKey                         string
	PodLevelNetAttributesAnnoKeys                   string
	IPv4ResourceAllocationAnnotationKey             string
	IPv6ResourceAllocationAnnotationKey             string
	NetNSPathResourceAllocationAnnotationKey        string
	NetInterfaceNameResourceAllocationAnnotationKey string
	NetClassIDResourceAllocationAnnotationKey       string
	NetBandwidthResourceAllocationAnnotationKey     string
}

func NewNetworkOptions added in v0.2.0

func NewNetworkOptions() *NetworkOptions

func (*NetworkOptions) AddFlags added in v0.2.0

func (o *NetworkOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*NetworkOptions) ApplyTo added in v0.2.0

type QRMPluginsOptions

type QRMPluginsOptions struct {
	CPUOptions     *CPUOptions
	MemoryOptions  *MemoryOptions
	NetworkOptions *NetworkOptions
}

func NewQRMPluginsOptions

func NewQRMPluginsOptions() *QRMPluginsOptions

func (*QRMPluginsOptions) AddFlags

func (o *QRMPluginsOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*QRMPluginsOptions) ApplyTo

Jump to

Keyboard shortcuts

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