deployments

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{
		AutoDrainingDeactivationInterval: 5 * time.Minute,
		AutoDrainingDeactivationJitter:   1 * time.Minute,
	},
}

Functions

func New

func New(l *zap.Logger, cfg *Config, db db.DB, telemetry *telemetry.Telemetry) sdkservices.Deployments

Types

type Config added in v0.13.0

type Config struct {
	AutoDrainingDeactivationInterval time.Duration `koanf:"draining_deactivation_interval"`
	AutoDrainingDeactivationJitter   time.Duration `koanf:"draining_deactivation_jitter"`
}

Draining will happen each interval + rand(jitter). Jitter is to prevent all instances from deactivating at the same time. Note that deactivation will happen if these are not set, as these are more to safeguard from a deployment being stuck in draining state.

Jump to

Keyboard shortcuts

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