manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 17 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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