autoscaler

package
v0.0.0-...-030bb99 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SizeClassQueueKey

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

SizeClassQueueKey can be used as a map key to uniquely identify a size class queue that is tracked by bb_scheduler. SizeClassQueueKeys can both be constructed from Protobuf fields stored in a configuration file, and from Prometheus metric names.

func NewSizeClassQueueKeyFromConfiguration

func NewSizeClassQueueKeyFromConfiguration(instanceNamePrefix string, platform *remoteexecution.Platform, sizeClass uint32) SizeClassQueueKey

NewSizeClassQueueKeyFromConfiguration creates a SizeClassQueueKey based on values provided in the bb_autoscaler configuration file.

func NewSizeClassQueueKeyFromMetric

func NewSizeClassQueueKeyFromMetric(metric model.Metric) (SizeClassQueueKey, error)

NewSizeClassQueueKeyFromMetric creates a SizeClassQueueKey based on labels in a Prometheus metric name.

Jump to

Keyboard shortcuts

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