workloadOptions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultOptions

type DefaultOptions Options

type LocalOptions

type LocalOptions []Options

type Options

type Options struct {
	Autoscaling    OptionsAutoscaling `json:"autoscaling,omitempty"`
	TimeoutSeconds float32            `json:"timeoutSeconds"`
	CapacityAI     bool               `json:"capacityAI,omitempty"`
	Spot           bool               `json:"spot,omitempty"`
	Debug          bool               `json:"debug,omitempty"`
	Suspend        bool               `json:"suspend,omitempty"`
}

type OptionsAutoscaling

type OptionsAutoscaling struct {
	Metric           OptionsAutoscalingMetric `json:"metric,omitempty"`
	Multi            any                      `json:"multi,omitempty"`
	MetricPercentile any                      `json:"metricPercentile,omitempty"`
	Target           float32                  `json:"target"`
	MaxScale         float32                  `json:"maxScale"`
	MinScale         float32                  `json:"minScale"`
	ScaleToZeroDelay float32                  `json:"scaleToZeroDelay"`
	MaxConcurrency   float32                  `json:"maxConcurrency"`
}

type OptionsAutoscalingMetric

type OptionsAutoscalingMetric string
const (
	OptionsAutoscalingMetricConcurrency OptionsAutoscalingMetric = "concurrency"
	OptionsAutoscalingMetricCpu         OptionsAutoscalingMetric = "cpu"
	OptionsAutoscalingMetricMemory      OptionsAutoscalingMetric = "memory"
	OptionsAutoscalingMetricRps         OptionsAutoscalingMetric = "rps"
	OptionsAutoscalingMetricLatency     OptionsAutoscalingMetric = "latency"
	OptionsAutoscalingMetricDisabled    OptionsAutoscalingMetric = "disabled"
)

Jump to

Keyboard shortcuts

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