adjust

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adjust

type Adjust struct {
	CurrentTimeout time.Duration
	// contains filtered or unexported fields
}

func NewAdjust

func NewAdjust(ac *AdjustConfig) *Adjust

NewAdjust creates a new Adjust with constraints.

func (*Adjust) Active added in v0.13.1

func (a *Adjust) Active(active uint32)

type AdjustConfig

type AdjustConfig struct {
	// Increment is multiplied by the number of active evalutors to determine
	// the active timeout.
	// Defaults to 100 Microseconds.
	Increment time.Duration

	// Max is the maximum Increment multiplier that can be applied as the
	// current timeout.
	// If service/tfmodel/batcher/config.BatcherConfig.MaxEvaluatorConcurrency
	// is set and it is less than Max, then Max will be set to
	// service/tfmodel/batcher/config.BatcherConfig.MaxEvaluatorConcurrency
	Max uint32
}

func (*AdjustConfig) Init

func (a *AdjustConfig) Init()

Init sets defaults.

Jump to

Keyboard shortcuts

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