autoscaling

package
v0.43.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigNameValueOfMap = map[string]valueOfConfig{
		"activator-capacity": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.ActivatorCapacity)
		},
		"container-concurrency-target-default": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.ContainerConcurrencyTargetDefault)
		},
		"enable-scale-to-zero": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%+v", config.EnableScaleToZero)
		},
		"max-scale-up-rate": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.MaxScaleUpRate)
		},
		"max-scale-down-rate": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.MaxScaleDownRate)
		},
		"panic-window-percentage": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.PanicWindowPercentage)
		},
		"panic-threshold-percentage": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.PanicThresholdPercentage)
		},
		"pod-autoscaler-class": func(config *autoscalerconfig.Config) string {
			return config.PodAutoscalerClass
		},
		"requests-per-second-target-default": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.RPSTargetDefault)
		},
		"stable-window": func(config *autoscalerconfig.Config) string {
			return describeDuration(config.StableWindow)
		},
		"scale-to-zero-grace-period": func(config *autoscalerconfig.Config) string {
			return describeDuration(config.ScaleToZeroGracePeriod)
		},
		"scale-to-zero-pod-retention-period": func(config *autoscalerconfig.Config) string {
			return describeDuration(config.ScaleToZeroPodRetentionPeriod)
		},
		"target-burst-capacity": func(config *autoscalerconfig.Config) string {
			return fmt.Sprintf("%.1f", config.TargetBurstCapacity)
		},
	}
)

Functions

func NewAutoscalingCmd

func NewAutoscalingCmd(p *pkg.AdminParams) *cobra.Command

domainCmd represents the domain command

func NewAutoscalingListCommand

func NewAutoscalingListCommand(p *pkg.AdminParams) *cobra.Command

NewAutoscalingListCommand represents autoscaling list command

func NewAutoscalingUpdateCommand

func NewAutoscalingUpdateCommand(p *pkg.AdminParams) *cobra.Command

Types

type Config

type Config struct {
	ScaleToZero                          bool
	EnableScaleToZero                    string
	StableWindow                         time.Duration
	ScaleToZeroGracePeriod               time.Duration
	ScaleToZeroPodRetentionPeriod        time.Duration
	ContainerConcurrencyTargetPercentage string
	PanicWindowPercentage                string
	PanicThresholdPercentage             string
	MaxScaleUpRate                       string
	MaxScaleDownRate                     string
	TargetBurstCapacity                  string
	ActivatorCapacity                    string
	RequestsPerSecondTargetDefault       string
	ContainerConcurrencyTargetDefault    string
	PodAutoscalerClass                   string
}

Autoscaling global configs

func NewConfig

func NewConfig() Config

Jump to

Keyboard shortcuts

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