Documentation ¶
Index ¶
- Constants
- Variables
- type Preemptor
- func (p *Preemptor) GetTargets(log logr.Logger, wl workload.Info, assignment flavorassigner.Assignment, ...) []*Target
- func (p *Preemptor) IssuePreemptions(ctx context.Context, preemptor *workload.Info, targets []*Target) (int, error)
- func (p *Preemptor) OverrideApply(f func(context.Context, *kueue.Workload, string, string) error)
- type Target
Constants ¶
View Source
const ( InCohortReclamationReason string = "InCohortReclamation" InCohortFairSharingReason string = "InCohortFairSharing" InCohortReclaimWhileBorrowingReason string = "InCohortReclaimWhileBorrowing" )
In cohort preemption reasons
View Source
const (
InClusterQueueReason string = "InClusterQueue"
)
In cluster queue preemption reasons
Variables ¶
View Source
var HumanReadablePreemptionReasons = map[string]string{ InClusterQueueReason: "prioritization in the ClusterQueue", InCohortReclamationReason: "reclamation within the cohort", InCohortFairSharingReason: "fair sharing within the cohort", InCohortReclaimWhileBorrowingReason: "reclamation within the cohort while borrowing", }
Functions ¶
This section is empty.
Types ¶
type Preemptor ¶
type Preemptor struct {
// contains filtered or unexported fields
}
func New ¶
func New(cl client.Client, workloadOrdering workload.Ordering, recorder record.EventRecorder, fs config.FairSharing) *Preemptor
func (*Preemptor) GetTargets ¶ added in v0.4.0
func (p *Preemptor) GetTargets(log logr.Logger, wl workload.Info, assignment flavorassigner.Assignment, snapshot *cache.Snapshot) []*Target
GetTargets returns the list of workloads that should be evicted in order to make room for wl.
Click to show internal directories.
Click to hide internal directories.