conf

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginOption

type PluginOption struct {
	// The name of Plugin
	Name string `yaml:"name" json:"name"`
	// JobOrderDisabled defines whether jobOrderFn is disabled
	JobOrderDisabled bool `yaml:"disableJobOrder" json:"disableJobOrder"`
	// TaskOrderDisabled defines whether taskOrderFn is disabled
	TaskOrderDisabled bool `yaml:"disableTaskOrder" json:"disableTaskOrder"`
	// PreemptableDisabled defines whether preemptableFn is disabled
	PreemptableDisabled bool `yaml:"disablePreemptable" json:"disablePreemptable"`
	// ReclaimableDisabled defines whether reclaimableFn is disabled
	ReclaimableDisabled bool `yaml:"disableReclaimable" json:"disableReclaimable"`
	// QueueOrderDisabled defines whether queueOrderFn is disabled
	QueueOrderDisabled bool `yaml:"disableQueueOrder" json:"disableQueueOrder"`
	// PredicateDisabled defines whether predicateFn is disabled
	PredicateDisabled bool `yaml:"disablePredicate" json:"disablePredicate"`
	// NodeOrderDisabled defines whether NodeOrderFn is disabled
	NodeOrderDisabled bool `yaml:"disableNodeOrder" json:"disableNodeOrder"`
	// Arguments defines the different arguments that can be given to different plugins
	Arguments map[string]string `yaml:"arguments" json:"arguments"`
}

PluginOption defines the options of plugin

type SchedulerConfiguration

type SchedulerConfiguration struct {
	// Actions defines the actions list of scheduler in order
	Actions string `yaml:"actions" json:"actions"`
	// Tiers defines plugins in different tiers
	Tiers []Tier `yaml:"tiers,omitempty" json:"tiers,omitempty"`
	// QueueDepthPerAction max number of jobs to try for action per queue
	QueueDepthPerAction map[string]int `yaml:"queueDepthPerAction,omitempty" json:"queueDepthPerAction,omitempty"`
}

SchedulerConfiguration defines the configuration of scheduler.

type SchedulerParams

type SchedulerParams struct {
	SchedulerName                     string                    `json:"schedulerName,omitempty"`
	RestrictSchedulingNodes           bool                      `json:"restrictSchedulingNodes,omitempty"`
	PartitionParams                   *SchedulingNodePoolParams `json:"partitionParams,omitempty"`
	IsInferencePreemptible            bool                      `json:"isInferencePreemptible,omitempty"`
	MaxNumberConsolidationPreemptees  int                       `json:"maxNumberConsolidationPreemptees,omitempty"`
	ScheduleCSIStorage                bool                      `json:"scheduleCSIStorage,omitempty"`
	UseSchedulingSignatures           bool                      `json:"useSchedulingSignatures,omitempty"`
	FullHierarchyFairness             bool                      `json:"fullHierarchyFairness,omitempty"`
	NodeLevelScheduler                bool                      `json:"nodeLevelScheduler,omitempty"`
	AllowConsolidatingReclaim         bool                      `json:"allowConsolidatingReclaim,omitempty"`
	NumOfStatusRecordingWorkers       int                       `json:"numOfStatusRecordingWorkers,omitempty"`
	GlobalDefaultStalenessGracePeriod time.Duration             `json:"globalDefaultStalenessGracePeriod,omitempty"`
	SchedulePeriod                    time.Duration             `json:"schedulePeriod,omitempty"`
	DetailedFitErrors                 bool                      `json:"detailedFitErrors,omitempty"`
}

type SchedulingNodePoolParams

type SchedulingNodePoolParams struct {
	NodePoolLabelKey   string
	NodePoolLabelValue string
}

func (*SchedulingNodePoolParams) GetLabelSelector

func (s *SchedulingNodePoolParams) GetLabelSelector() (labels.Selector, error)

func (*SchedulingNodePoolParams) GetLabels

func (s *SchedulingNodePoolParams) GetLabels() map[string]string

type Tier

type Tier struct {
	Plugins []PluginOption `yaml:"plugins" json:"plugins"`
}

Tier defines plugin tier

Jump to

Keyboard shortcuts

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