Documentation
¶
Overview ¶
Package memorymonitor includes memory monitors and controllers based on cgroup data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryController ¶
type MemoryController struct {
// contains filtered or unexported fields
}
MemoryController describes a cgroup based memory controller
func NewMemoryController ¶
func NewMemoryController(kind string, containerized bool, monitors ...MemoryMonitor) (*MemoryController, error)
NewMemoryController creates a new systemd cgroup based memory controller
type MemoryMonitor ¶
type MemoryMonitor func(cgroup cgroupsv1.Cgroup) (cgroupsv1.MemoryEvent, func(), error)
MemoryMonitor creates a cgroup memory event
func MemoryPercentageThresholdMonitor ¶
func MemoryPercentageThresholdMonitor(cb func(), percentage uint64, swap bool) MemoryMonitor
MemoryPercentageThresholdMonitor monitors memory usage above a specified percentage threshold
func MemoryPressureMonitor ¶
func MemoryPressureMonitor(cb func(), level string) MemoryMonitor
MemoryPressureMonitor monitors memory pressure levels
func MemoryThresholdMonitor ¶
func MemoryThresholdMonitor(cb func(), limit uint64, swap bool) MemoryMonitor
MemoryThresholdMonitor monitors memory usage above a specified threshold
Click to show internal directories.
Click to hide internal directories.