scaling

package
v0.0.0-...-f243925 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScalingPolicyEvaluator

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

func NewScalingPolicyEvaluator

func NewScalingPolicyEvaluator(clock clock.Clock, rule *scalingpolicy.ScalingPolicy) *ScalingPolicyEvaluator

func (*ScalingPolicyEvaluator) AddObservation

func (e *ScalingPolicyEvaluator) AddObservation(inputs factors.Snapshot)

AddObservation is called whenever we observe input values

func (*ScalingPolicyEvaluator) ComputeResources

func (e *ScalingPolicyEvaluator) ComputeResources(parentPath string, currentPod *v1.PodSpec) (*v1.PodSpec, error)

ComputeResources computes a list of resource quantities based on the input state and the specified policy It returns a partial PodSpec with the resources we should apply

func (*ScalingPolicyEvaluator) UpdatePolicy

func (e *ScalingPolicyEvaluator) UpdatePolicy(rule *scalingpolicy.ScalingPolicy)

Jump to

Keyboard shortcuts

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