Documentation ¶
Index ¶
- type CPUDynamicPolicyOptions
- type CPUNativePolicyOptions
- type CPUOptions
- type FragMemOptions
- type GenericQRMPluginOptions
- type IOCostOption
- type IOOptions
- type IOWeightOption
- type LogCacheOptions
- type MemoryOptions
- type NetClassOptions
- type NetworkOptions
- type QRMPluginsOptions
- type SockMemOptions
- type WritebackThrottlingOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUDynamicPolicyOptions ¶ added in v0.3.0
type CPUNativePolicyOptions ¶ added in v0.3.0
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 FragMemOptions ¶ added in v0.5.12
type GenericQRMPluginOptions ¶
type GenericQRMPluginOptions struct { QRMPluginSocketDirs []string StateFileDirectory string ExtraStateFileAbsPath string PodDebugAnnoKeys []string UseKubeletReservedConfig bool PodAnnotationKeptKeys []string PodLabelKeptKeys []string }
func NewGenericQRMPluginOptions ¶
func NewGenericQRMPluginOptions() *GenericQRMPluginOptions
func (*GenericQRMPluginOptions) AddFlags ¶
func (o *GenericQRMPluginOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*GenericQRMPluginOptions) ApplyTo ¶
func (o *GenericQRMPluginOptions) ApplyTo(conf *qrmconfig.GenericQRMPluginConfiguration) error
type IOCostOption ¶ added in v0.4.1
type IOOptions ¶ added in v0.4.0
type IOOptions struct { PolicyName string WritebackThrottlingOption // option for writeback throttling, it determin the recycling speed of dirty memory. // TO-DO // DirtyThrottlingOption // option for dirty throttling, it determin the global watermark of dirty memory. IOCostOption IOWeightOption }
func NewIOOptions ¶ added in v0.4.0
func NewIOOptions() *IOOptions
func (*IOOptions) AddFlags ¶ added in v0.4.0
func (o *IOOptions) AddFlags(fss *cliflag.NamedFlagSets)
type IOWeightOption ¶ added in v0.4.1
type LogCacheOptions ¶ added in v0.5.11
type LogCacheOptions struct { // EnableEvictingLogCache is used to enable evicting log cache by advise kernel to throw page cache for log files EnableEvictingLogCache bool // If the change value of the page cache between two operations exceeds this threshold, then increase the frequency of subsequent eviction operations. HighThreshold uint64 // If the change value of the page cache between two operations is lower than this value, then slow down the frequency of subsequent eviction operations. LowThreshold uint64 // The minimum time interval between two operations MinInterval time.Duration // The maximum time interval between two operations MaxInterval time.Duration // The file directory for evicting the log cache PathList []string // Keywords for recognizing log files FileFilters []string }
type MemoryOptions ¶
type MemoryOptions struct { PolicyName string ReservedMemoryGB uint64 SkipMemoryStateCorruption bool EnableSettingMemoryMigrate bool EnableMemoryAdvisor bool ExtraControlKnobConfigFile string EnableOOMPriority bool OOMPriorityPinnedMapAbsPath string SockMemOptions LogCacheOptions FragMemOptions }
func NewMemoryOptions ¶
func NewMemoryOptions() *MemoryOptions
func (*MemoryOptions) AddFlags ¶
func (o *MemoryOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*MemoryOptions) ApplyTo ¶
func (o *MemoryOptions) ApplyTo(conf *qrmconfig.MemoryQRMPluginConfig) error
type NetClassOptions ¶ added in v0.2.0
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
func (o *NetworkOptions) ApplyTo(conf *qrmconfig.NetworkQRMPluginConfig) error
type QRMPluginsOptions ¶
type QRMPluginsOptions struct { CPUOptions *CPUOptions MemoryOptions *MemoryOptions NetworkOptions *NetworkOptions IOOptions *IOOptions }
func NewQRMPluginsOptions ¶
func NewQRMPluginsOptions() *QRMPluginsOptions
func (*QRMPluginsOptions) AddFlags ¶
func (o *QRMPluginsOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*QRMPluginsOptions) ApplyTo ¶
func (o *QRMPluginsOptions) ApplyTo(conf *qrmconfig.QRMPluginsConfiguration) error
type SockMemOptions ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.