iolimit

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CgroupfsDriver CgroupDrivertype = "cgroupfs"
	SystemdDriver  CgroupDrivertype = "systemd"
	RootCgroup     string           = "/sys/fs/cgroup"
)
View Source
const (
	BlkIOThrottleReadBPS   = "blkio.throttle.read_bps_device"
	BlkIOThrottleReadIOPS  = "blkio.throttle.read_iops_device"
	BlkIOThrottleWriteBPS  = "blkio.throttle.write_bps_device"
	BlkIOThrottleWriteIOPS = "blkio.throttle.write_iops_device"
	Cgroupv2BlkIOThrottle  = "io.max"
)

Variables

This section is empty.

Functions

func GetSupportedIOThrottles

func GetSupportedIOThrottles() []string

func SetIOLimit

func SetIOLimit(blkIO *PodBlkIO) error

Types

type CgroupDrivertype

type CgroupDrivertype string

type CgroupName

type CgroupName []string

func NewCgroupName

func NewCgroupName(base CgroupName, components ...string) CgroupName

type DeviceIOSet

type DeviceIOSet map[string]*IOLimit

DeviceIOSet key is device number

type IOLimit

type IOLimit struct {
	Rbps  uint64
	Riops uint64
	Wbps  uint64
	Wiops uint64
}

func (*IOLimit) Equal

func (bd1 *IOLimit) Equal(bd2 *IOLimit) bool

type PodBlkIO

type PodBlkIO struct {
	PodUid      string
	PodQos      v1.PodQOSClass
	DeviceIOSet DeviceIOSet
}

Jump to

Keyboard shortcuts

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