Documentation ¶
Index ¶
- Constants
- type CgroupResourceConfig
- type ResourceQosManager
- func NewQosCpuAdaptive(kubeletStatic bool, config types.CpuSetConfig, store statestore.StateStore) ResourceQosManager
- func NewQosCpuBT(kubeletStatic bool) ResourceQosManager
- func NewQosCpuQuota(kubeletStatic bool, config types.CpuQuotaConfig) ResourceQosManager
- func NewQosCpuSet(config types.CpuSetConfig) ResourceQosManager
- func NewQosDiskIO(disks []string) ResourceQosManager
- func NewQosMemory(stStore statestore.StateStore) ResourceQosManager
- func NewQosNetIO(iface, eniIface string) ResourceQosManager
Constants ¶
View Source
const ( QosCPU = "cpu" QosCPUBT = "cpuBT" QosCPUSet = "cpuSet" QosCPUQuota = "cpuQuota" QosAdaptive = "cpuAdaptive" )
View Source
const ( QosNetIO = "netio" EnvEniIP = "ENI_IP_RESOURCE" )
View Source
const QosDiskIO = "diskio"
View Source
const QosMemory = "memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupResourceConfig ¶
type CgroupResourceConfig struct { OnlineCgroups []string OfflineCgroups []string Resources v1.ResourceList PodList []*v1.Pod }
CgroupResourceConfig group options for offline pods
func (*CgroupResourceConfig) String ¶
func (c *CgroupResourceConfig) String() string
String formats cgroup resource output
type ResourceQosManager ¶
type ResourceQosManager interface { Name() string PreInit() error Run(stop <-chan struct{}) Manage(cgResources *CgroupResourceConfig) error }
ResourceQosManager describe resource manager interface functions
func NewQosCpuAdaptive ¶
func NewQosCpuAdaptive(kubeletStatic bool, config types.CpuSetConfig, store statestore.StateStore) ResourceQosManager
NewQosCpuAdaptive new cpu adaptive instance
func NewQosCpuBT ¶
func NewQosCpuBT(kubeletStatic bool) ResourceQosManager
NewQosCpuBT creates cpu manager with bt feature
func NewQosCpuQuota ¶
func NewQosCpuQuota(kubeletStatic bool, config types.CpuQuotaConfig) ResourceQosManager
NewQosCpuQuota creates cpu manager with quota/period feature
func NewQosCpuSet ¶
func NewQosCpuSet(config types.CpuSetConfig) ResourceQosManager
NewQosCpuSet creates cpu manager with cpuset feature
func NewQosDiskIO ¶
func NewQosDiskIO(disks []string) ResourceQosManager
NewQosDiskIO creates disk io manager
func NewQosMemory ¶
func NewQosMemory(stStore statestore.StateStore) ResourceQosManager
NewQosMemory creates memory manager instance
func NewQosNetIO ¶
func NewQosNetIO(iface, eniIface string) ResourceQosManager
NewQosNetIO creates network io manager instance
Source Files ¶
Click to show internal directories.
Click to hide internal directories.