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
Click to show internal directories.
Click to hide internal directories.