scaleup

package
v0.0.0-...-29ce5d4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orchestrator

type Orchestrator interface {
	// Initialize initializes the orchestrator object with required fields.
	Initialize(
		autoscalingContext *context.AutoscalingContext,
		processors *ca_processors.AutoscalingProcessors,
		clusterStateRegistry *clusterstate.ClusterStateRegistry,
		estimatorBuilder estimator.EstimatorBuilder,
		taintConfig taints.TaintConfig,
	)
	// ScaleUp tries to scale the cluster up. Returns appropriate status or error if
	// an unexpected error occurred. Assumes that all nodes in the cluster are ready
	// and in sync with instance groups.
	ScaleUp(
		unschedulablePods []*apiv1.Pod,
		nodes []*apiv1.Node,
		daemonSets []*appsv1.DaemonSet,
		nodeInfos map[string]*framework.NodeInfo,
		allOrNothing bool,
	) (*status.ScaleUpStatus, errors.AutoscalerError)
	// ScaleUpToNodeGroupMinSize tries to scale up node groups that have less nodes
	// than the configured min size. The source of truth for the current node group
	// size is the TargetSize queried directly from cloud providers. Returns
	// appropriate status or error if an unexpected error occurred.
	ScaleUpToNodeGroupMinSize(
		nodes []*apiv1.Node,
		nodeInfos map[string]*framework.NodeInfo,
	) (*status.ScaleUpStatus, errors.AutoscalerError)
}

Orchestrator is a component that picks the node group to resize and triggers creation of needed instances.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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