hpa

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHPARecommender

func NewHPARecommender(recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (recommender.Recommender, error)

NewHPARecommender create a new hpa recommender.

Types

type HPARecommender

type HPARecommender struct {
	replicas.ReplicasRecommender
	PredictableEnabled      bool
	ReferenceHpaEnabled     bool
	MinCpuUsageThreshold    float64
	FluctuationThreshold    float64
	MinCpuTargetUtilization int64
	MaxCpuTargetUtilization int64
	MaxReplicasFactor       float64
}

func (*HPARecommender) CheckDataProviders

func (rr *HPARecommender) CheckDataProviders(ctx *framework.RecommendationContext) error

CheckDataProviders in PrePrepare phase, will create data source provider via your recommendation config.

func (*HPARecommender) CollectData

func (rr *HPARecommender) CollectData(ctx *framework.RecommendationContext) error

func (*HPARecommender) Filter

Filter out k8s resources that are not supported by the recommender.

func (*HPARecommender) Name

func (rr *HPARecommender) Name() string

func (*HPARecommender) Observe

Observe enhance the observability.

func (*HPARecommender) Policy

Policy add some logic for result of recommend phase.

func (*HPARecommender) PostProcessing

func (rr *HPARecommender) PostProcessing(ctx *framework.RecommendationContext) error

func (*HPARecommender) PreRecommend

func (rr *HPARecommender) PreRecommend(ctx *framework.RecommendationContext) error

func (*HPARecommender) Recommend

Jump to

Keyboard shortcuts

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