estimator

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

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

Go to latest
Published: Apr 21, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicNodeEstimator

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

BasicNodeEstimator estimates the number of needed nodes to handle the given amount of pods. It will never overestimate the number of nodes but is quite likekly to provide a number that is too small.

func NewBasicNodeEstimator

func NewBasicNodeEstimator() *BasicNodeEstimator

NewBasicNodeEstimator builds BasicNodeEstimator.

func (*BasicNodeEstimator) Add

func (basicEstimator *BasicNodeEstimator) Add(pod *kube_api.Pod) error

Add adds Pod to the estimation.

func (*BasicNodeEstimator) Estimate

func (basicEstimator *BasicNodeEstimator) Estimate(node *kube_api.Node) int

Estimate estimates the number needed of nodes of the given shape.

Jump to

Keyboard shortcuts

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