iolimit

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetIOLimits

func SetIOLimits(request *Request) error

SetIOLimits sets iops, bps limits for a pod with uid podUid for accessing a device named deviceName provided that the underlying cgroup used for pod namespacing is cgroup2 (cgroup v2)

Types

type DeviceNumber

type DeviceNumber struct {
	Major uint64
	Minor uint64
}

type IOMax

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

type Request

type Request struct {
	DeviceName       string
	PodUid           string
	ContainerRuntime string
	IOLimit          *IOMax
}

type ValidRequest

type ValidRequest struct {
	FilePath     string
	DeviceNumber *DeviceNumber
	IOMax        *IOMax
}

Jump to

Keyboard shortcuts

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