recommender

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// configurations
	TTLHourOfMinMaxReplicasRecommendation float64
	// contains filtered or unexported fields
}

func New

func New(
	tTLHoursOfMinMaxReplicasRecommendation int,
	maxReplicasFactor float64,
	minReplicasFactor float64,
	upperTargetResourceUtilization int,
	minimumMinReplicas int,
	preferredReplicaNumUpperLimit int,
	maxCPUPerContainer string,
	maxMemoryPerContainer string,
) *Service

func (*Service) UpdateRecommendations

func (s *Service) UpdateRecommendations(ctx context.Context, tortoise *v1beta1.Tortoise, hpa *v2.HorizontalPodAutoscaler, deployment *v1.Deployment, now time.Time) (*v1beta1.Tortoise, error)

Jump to

Keyboard shortcuts

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