autoscaler

package
v0.0.0-...-9cb8b67 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainAutoscalingLoop

func MainAutoscalingLoop(client *clients.Client, extensionsClient *kubernetes.Clientset)

func ScrapeExogenousMetrics

func ScrapeExogenousMetrics(metric model.AutoscalingDefinitionMetric, testDuration time.Duration, scrapeDuration time.Duration) (exogenousRegressorResultChannel chan ExogenousRegressorScrapeResult, scrapeInterval chan bool)

func StartAutoscaleProcess

func StartAutoscaleProcess(autoscaleEvaluationChannel chan AutoscaleEvaluation, client *kubernetes.Clientset,
	definition model.AutoscalingDefinition, clearMetricBufferChannel chan model.AutoscalingDefinitionMetric)

Types

type AutoscaleEvaluation

type AutoscaleEvaluation struct {
	ScaleDown bool
	ScaleUp   bool
	Metric    model.AutoscalingDefinitionMetric
}

type AutoscaleEvaluationResult

type AutoscaleEvaluationResult struct {
	AutoscaleEvaluation           chan AutoscaleEvaluation
	CloseEvaluationProcessChannel chan bool
	ClearBufferChannel            chan bool
}

func EvaluateAutoscaling

func EvaluateAutoscaling(resultChannel metrics.TestResultsChannel,
	exogenousRegressorResultChannel chan ExogenousRegressorScrapeResult,
	metric model.AutoscalingDefinitionMetric) AutoscaleEvaluationResult

func EvaluateAutoscalingPredictive

func EvaluateAutoscalingPredictive(
	resultChannel metrics.TestResultsChannel,
	exogenousRegressorResultChannel chan ExogenousRegressorScrapeResult,
	metric model.AutoscalingDefinitionMetric) AutoscaleEvaluationResult

type DefinitionChanges

type DefinitionChanges struct {
	// contains filtered or unexported fields
}

type DefinitionChannel

type DefinitionChannel struct {
	// contains filtered or unexported fields
}

type ExogenousRegressorResultChannel

type ExogenousRegressorResultChannel struct {
	// contains filtered or unexported fields
}

type ExogenousRegressorScrapeResult

type ExogenousRegressorScrapeResult struct {
	Name    string
	Value   float64
	IsValid bool
}

type MetricChannels

type MetricChannels struct {
	// contains filtered or unexported fields
}

type ScrapeResultMap

type ScrapeResultMap struct {
	Name        string
	ScrapedList []ScrapedMetricItem
}

type ScrapedMetricItem

type ScrapedMetricItem struct {
	MetricName    string
	IsMetricValid bool
	Value         []model2.Value
}

Jump to

Keyboard shortcuts

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