resource

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MinDeltaRatio     = 0.1
	StateExpiration   = 1 * time.Minute
	TspUpdateInterval = 20 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeResourceManager

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

func NewNodeResourceManager

func NewNodeResourceManager(client clientset.Interface, nodeName string, podInformer coreinformers.PodInformer, nodeInformer coreinformers.NodeInformer,
	tspInformer predictionv1.TimeSeriesPredictionInformer, runtimeEndpoint string, stateChann chan map[string][]common.TimeSeries) *NodeResourceManager

func (*NodeResourceManager) BuildNodeStatus

func (o *NodeResourceManager) BuildNodeStatus(tsp *predictionapi.TimeSeriesPrediction, node *v1.Node)

func (*NodeResourceManager) FindTargetNode

func (o *NodeResourceManager) FindTargetNode(tsp *predictionapi.TimeSeriesPrediction, addresses []v1.NodeAddress) (bool, error)

func (*NodeResourceManager) Name

func (o *NodeResourceManager) Name() string

func (*NodeResourceManager) Run

func (o *NodeResourceManager) Run(stop <-chan struct{})

func (*NodeResourceManager) UpdateNodeResource

func (o *NodeResourceManager) UpdateNodeResource()

type PodResourceManager

type PodResourceManager struct {
	cadvisor.Manager
	// contains filtered or unexported fields
}

func NewPodResourceManager

func NewPodResourceManager(client clientset.Interface, nodeName string, podInformer coreinformers.PodInformer,
	runtimeEndpoint string, stateChann chan map[string][]common.TimeSeries, cadvisorManager cadvisor.Manager) *PodResourceManager

func (*PodResourceManager) Name

func (o *PodResourceManager) Name() string

func (*PodResourceManager) Run

func (o *PodResourceManager) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

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