autoscaler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscaler

type Autoscaler struct {
	client.Client

	Interval     time.Duration
	AverageCount int

	LeaderElection *leader.Election

	Deployments *deployments.Manager
	Queues      *queue.Manager
	Endpoints   *endpoints.Manager

	ConcurrencyPerReplica int

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Autoscaler is responsible for making continuous adjustments to the scale of the backend. It is not responsible for scale-from-zero. Each deployment has its own autoscaler.

func New

func New(mgr ctrl.Manager) (*Autoscaler, error)

func (*Autoscaler) Reconcile

func (r *Autoscaler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Autoscaler) SetupWithManager

func (r *Autoscaler) SetupWithManager(mgr ctrl.Manager) error

func (*Autoscaler) Start

func (a *Autoscaler) Start()

Jump to

Keyboard shortcuts

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