global

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfiguration

type BaseConfiguration struct {
	// Agents is the list of agent components to enable or disable
	// '*' means "all enabled by default agents"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins
	Agents []string

	NodeName    string
	NodeAddress string

	// LockFileName indicates the file used as unique lock
	LockFileName string
	// if LockWaitingEnabled set as true, will not panic and report agent as healthy instead
	LockWaitingEnabled bool

	// ReclaimRelativeRootCgroupPath is configurable since we may need to
	// specify a customized path for reclaimed-cores to enrich qos-management ways
	ReclaimRelativeRootCgroupPath string

	*MachineInfoConfiguration
	*KubeletConfiguration
	*RuntimeConfiguration
}

func NewBaseConfiguration

func NewBaseConfiguration() *BaseConfiguration

type KubeletConfiguration added in v0.4.1

type KubeletConfiguration struct {
	KubeletReadOnlyPort      int
	KubeletSecurePort        int
	KubeletSecurePortEnabled bool

	KubeletConfigEndpoint  string
	KubeletPodsEndpoint    string
	KubeletSummaryEndpoint string

	APIAuthTokenFile string
}

type MachineInfoConfiguration added in v0.2.0

type MachineInfoConfiguration struct {
	// if NetMultipleNS set as true, we should collect network interfaces from multiple ns
	NetMultipleNS   bool
	NetNSDirAbsPath string

	// SiblingNumaMemoryBandwidthCapacity is the max capacity of memory bandwidth can share
	// among sibling NUMAs, and SiblingNumaMemoryBandwidthAllocatableRate is the rate of
	// the allocatable to the capacity
	SiblingNumaMemoryBandwidthCapacity        int64
	SiblingNumaMemoryBandwidthAllocatableRate float64
}

type PluginManagerConfiguration

type PluginManagerConfiguration struct {
	PluginRegistrationDir string
}

func NewPluginManagerConfiguration

func NewPluginManagerConfiguration() *PluginManagerConfiguration

type QRMAdvisorConfiguration

type QRMAdvisorConfiguration struct {
	CPUAdvisorSocketAbsPath string
	CPUPluginSocketAbsPath  string

	MemoryAdvisorSocketAbsPath string
	MemoryPluginSocketAbsPath  string
}

func NewQRMAdvisorConfiguration

func NewQRMAdvisorConfiguration() *QRMAdvisorConfiguration

type RuntimeConfiguration added in v0.4.1

type RuntimeConfiguration struct {
	RuntimeEndpoint string
}

Jump to

Keyboard shortcuts

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