reporter

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OvercommitManager

type OvercommitManager interface {
	GetOvercommitRatio() (map[v1.ResourceName]float64, error)
}

type OvercommitRatioReporter

type OvercommitRatioReporter interface {
	Run(ctx context.Context)
}

OvercommitRatioReporter report node overcommitment ratio calculated by agent

func NewOvercommitRatioReporter

func NewOvercommitRatioReporter(
	emitter metrics.MetricEmitter,
	conf *config.Configuration,
	manager OvercommitManager,
	metaServer *metaserver.MetaServer,
) (OvercommitRatioReporter, error)

type OvercommitRatioReporterPlugin

type OvercommitRatioReporterPlugin struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*OvercommitRatioReporterPlugin) GetReportContent

GetReportContent get overcommitment ratio from manager directly. Since the metrics collected by Manager are already an average within a time period, we expect a faster response to node load fluctuations to avoid excessive overcommit of online resources.

func (*OvercommitRatioReporterPlugin) ListAndWatchReportContent

func (*OvercommitRatioReporterPlugin) Name

func (*OvercommitRatioReporterPlugin) Start

func (o *OvercommitRatioReporterPlugin) Start() (err error)

func (*OvercommitRatioReporterPlugin) Stop

Jump to

Keyboard shortcuts

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