bandwidth

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotaionPodIngressBandwidth = "kubernetes.io/ingress-bandwidth"
	AnnotaionPodEgressBandwidth  = "kubernetes.io/egress-bandwidth"
	AnnotaionPodBindwidthMode    = "kubernetes.io/bindwidth-mode"
)
View Source
const (
	BYTE = 1 << (10 * iota)
	KILOBYTE
	MEGABYTE
	GIGABYTE
	TERABYTE
)

bandwidth limit unit

Variables

This section is empty.

Functions

func GetPodBandwidth

func GetPodBandwidth(podAnnotation map[string]string, cniDriver string) (*ccev2.BindwidthOption, error)

func InitBandwidthManager

func InitBandwidthManager()

func ProbeBandwidthManager

func ProbeBandwidthManager()

func SetupTBFQdisc

func SetupTBFQdisc(dev netlink.Link, bandwidthInBytes uint64) error

Types

type BandwidthManager

type BandwidthManager struct {
	Mode ccev2.BindwidthMode
}
var (
	GlobalManager *BandwidthManager
)

func (*BandwidthManager) AcceptType

AcceptType implements event.EndpointProbeEventHandler.

func (*BandwidthManager) Handle

Handle implements event.EndpointProbeEventHandler.

Jump to

Keyboard shortcuts

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