common

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 1 Imported by: 10

Documentation

Index

Constants

View Source
const (
	// RunningStateNotStarted represents not started state of a resource manager component
	RunningStateNotStarted = 0
	// RunningStateRunning represents running state of a resource manager component
	RunningStateRunning = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PreemptionConfig

type PreemptionConfig struct {
	// Boolean value to represent if preemption is enabled to run
	Enabled bool

	// Period to process resource pools for preemption.
	TaskPreemptionPeriod time.Duration `yaml:"task_preemption_period"`

	// This count represents the maximum number of times the allocation can
	// be great than entitlement(for a resource pool) without preemption kicking in.
	// If the value exceeds this number then the preemption logic will kick
	// in to reduce the allocation.
	SustainedOverAllocationCount int `yaml:"sustained_over_allocation_count"`
}

PreemptionConfig is the container for preemption related config TODO merge resmgr config to common

Jump to

Keyboard shortcuts

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