scaling

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeometricExpectedReleaseLatency

func GeometricExpectedReleaseLatency(st ScalableTarget, max uint32, log logr.Logger) time.Duration

func GeometricNextIncrement

func GeometricNextIncrement(st ScalableTarget, max uint32, log logr.Logger) uint32

func GeometricScale

func GeometricScale(st ScalableTarget, max uint32, t time.Time, log logr.Logger) uint32

func LinearExpectedReleaseLatency

func LinearExpectedReleaseLatency(st ScalableTarget, max uint32, log logr.Logger) time.Duration

func LinearNextIncrement

func LinearNextIncrement(st ScalableTarget, max uint32, log logr.Logger) uint32

func LinearScale

func LinearScale(st ScalableTarget, max uint32, t time.Time, log logr.Logger) uint32

LinearScale scales a ScalableTarget linearly

Types

type ScalableTarget

type ScalableTarget interface {
	CanRampTo(uint32) bool
	CurrentPercent() uint32
	PeakPercent() uint32
	LastUpdated() time.Time
	ReleaseInfo() picchu.ReleaseInfo
}

ScalableTarget is an interface to a revision target that is scalable.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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