constants

package
v0.0.0-...-b4f3a91 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaddleService               = "paddleService"
	PaddleServiceDefaultPodName = "http1"
)

PaddleService Key

View Source
const (
	PaddleServiceConfigName      = "paddleservice-config"
	PaddleServiceConfigNamespace = "paddleservice-system"
)

PaddleService configuration name and namespce

Variables

View Source
var (
	PaddleServiceDefaultCPU                               = "0.2"
	PaddleServiceDefaultMemory                            = "512Mi"
	PaddleServiceDefaultMinScale                          = 0 // 0 if scale-to-zero is desired
	PaddleServiceDefaultMaxScale                          = 0 // 0 means limitless
	PaddleServiceDefaultTimeout                     int64 = 300
	PaddleServiceDefaultScalingClass                      = autoscaling.KPA // kpa or hpa
	PaddleServiceDefaultScalingMetric                     = "concurrency"   // concurrency, rps or cpu (hpa required)
	PaddleServiceDefaultScalingTarget                     = 100
	PaddleServiceDefaultTargetUtilizationPercentage       = "70"
	PaddleServiceDefaultWindow                            = "60s"
	PaddleServiceDefaultPanicWindow                       = "10" // percentage of StableWindow
	PaddleServiceDefaultPanicThreshold                    = "200"
	PaddleServivceDefaultTrafficPercents                  = 50
)

PaddleService resource defaults

View Source
var (
	ReadinessInitialDelaySeconds int32 = 60
	ReadinessFailureThreshold    int32 = 3
	ReadinessPeriodSeconds       int32 = 10
	ReadinessTimeoutSeconds      int32 = 180
	SuccessThreshold             int32 = 1
	LivenessInitialDelaySeconds  int32 = 60
	LivenessFailureThreshold     int32 = 3
	LivenessPeriodSeconds        int32 = 10
)

Functions

func CanaryServiceName

func CanaryServiceName(name string) string

func DefaultServiceName

func DefaultServiceName(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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