autoscaler

package
v0.381.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiAutoscaler

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

MultiAutoscaler is a controller that manages multiple scalers.

func NewMultiAutoscaler

func NewMultiAutoscaler(
	k8sClient client.Client,
	metricsProvider metrics.Provider,
	config config.AutoscalerConfig,
) *MultiAutoscaler

NewMultiAutoscaler creates a new MultiAutoscaler.

func (*MultiAutoscaler) NeedLeaderElection

func (m *MultiAutoscaler) NeedLeaderElection() bool

NeedLeaderElection implements LeaderElectionRunnable and always returns true.

func (*MultiAutoscaler) Register

func (m *MultiAutoscaler) Register(modelID string, target types.NamespacedName)

Register registers a new scaler for the given runtime.

func (*MultiAutoscaler) SetupWithManager

func (m *MultiAutoscaler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the multi-autoscaler with the Manager.

func (*MultiAutoscaler) Start

func (m *MultiAutoscaler) Start(ctx context.Context) error

Start starts the multi-autoscaler.

func (*MultiAutoscaler) Unregister

func (m *MultiAutoscaler) Unregister(target types.NamespacedName)

Unregister unregisters the scaler for the given runtime.

Jump to

Keyboard shortcuts

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