global

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 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

View Source
const (
	// DefaultPollTime is the standard requeue interval controllers use while
	// waiting for a slow external state transition (an OpenStack migration, a
	// service being disabled, ...) to settle.
	DefaultPollTime = 10 * time.Second

	// ShortRetryTime is a brief requeue interval used to retry quickly when a
	// reconcile could make progress on the next pass without waiting for a full
	// poll cycle.
	ShortRetryTime = 1 * time.Second
)

Variables

View Source
var (
	// LabelSelector is a custom label that is used to select resources managed by the operator.
	LabelSelector = ""

	// AgentNamespaces is the list of namespaces in which agent pods (nova-compute,
	// neutron) are scheduled. The pod list during offboarding is restricted to
	// these namespaces. Must be non-empty; set via --agent-namespaces.
	AgentNamespaces []string

	// EvictionConcurrency is the default maximum number of VM migrations that may
	// run concurrently while draining a single hypervisor. Defaults to 1 (serial),
	// which preserves the historical one-at-a-time behavior. Set via
	// --eviction-concurrency.
	EvictionConcurrency = 1

	// EvictionTraitConcurrency maps a Placement trait name to a maximum number of
	// concurrent migrations for hosts carrying that trait. It overrides
	// EvictionConcurrency for matching hosts. Typical use is forcing exclusive host
	// classes (e.g. CUSTOM_HANA_EXCLUSIVE_HOST) to migrate serially. Set via
	// --eviction-trait-concurrency.
	EvictionTraitConcurrency = map[string]int{}
)

Functions

func ResolveConcurrency added in v1.3.0

func ResolveConcurrency(traits []string) int

ResolveConcurrency returns the maximum number of concurrent migrations for a host given its traits. It starts from EvictionConcurrency and, for every trait present in EvictionTraitConcurrency, keeps the lowest configured limit. The result is always clamped to at least 1 so a misconfiguration can never stall a drain entirely.

Types

This section is empty.

Jump to

Keyboard shortcuts

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