advisor

package
v0.5.50 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisor

type Advisor interface {
	GetPlan(ctx context.Context, domainsMon *monitor.DomainStats) (*plan.MBPlan, error)
	GetSuppressedCCDs() []SuppressedCCD
}

func New

func New(emitter metrics.MetricEmitter, domains domain.Domains, ccdMinMB, ccdMaxMB int, defaultDomainCapacity int,
	capPercent int, XDomGroups []string, groupNeverThrottles []string,
	groupCapacity map[string]int,
) Advisor

func NewPControllerAdvisor added in v0.5.46

func NewPControllerAdvisor(Kp float64,
	minValue, maxValue int,
	groupTargets map[string]int,
	inner Advisor,
) Advisor

type SuppressedCCD added in v0.5.48

type SuppressedCCD struct {
	DomID           int
	Group           string
	CCDID           int
	SuppressionType string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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