oom

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigMapOOMRecordName      = "oom-record"
	ConfigMapDataOOMRecord      = "oom-data"
	ConfigMapOOMRecordNameSpace = "kube-system"
	CacheCleanTimeDurationHour  = 12
	DataRetentionHour           = 168
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OOMRecord

type OOMRecord struct {
	Namespace string
	Pod       string
	Container string
	Memory    resource.Quantity
	OOMAt     time.Time
}

type PodOOMRecorder

type PodOOMRecorder struct {
	client.Client

	OOMRecordMaxNumber int

	Queue workqueue.Interface
	// contains filtered or unexported fields
}

func (*PodOOMRecorder) ListOOMRecords

func (r *PodOOMRecorder) ListOOMRecords() []OOMRecord

func (*PodOOMRecorder) ListOOMRecordsFromConfigmap

func (r *PodOOMRecorder) ListOOMRecordsFromConfigmap() ([]OOMRecord, error)

func (*PodOOMRecorder) Run

func (r *PodOOMRecorder) Run(stopCh <-chan struct{}) error

type Recorder

type Recorder interface {
	ListOOMRecords() []OOMRecord
}

Jump to

Keyboard shortcuts

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