Documentation ¶
Index ¶
- Constants
- func IsTerminalQueueUnschedulableReason(reason string) bool
- func IsTerminalUnschedulableReason(reason string) bool
- func ScaleQuantity(q resource.Quantity, f float64) resource.Quantity
- func UnschedulableReasonIsPropertyOfGang(reason string) bool
- type SchedulingConstraints
- func (constraints *SchedulingConstraints) CapResources(queue string, ...) schedulerobjects.QuantityByTAndResourceType[string]
- func (constraints *SchedulingConstraints) CheckConstraints(sctx *schedulercontext.SchedulingContext, ...) (bool, string, error)
- func (constraints *SchedulingConstraints) CheckRoundConstraints(sctx *schedulercontext.SchedulingContext) (bool, string, error)
- func (constraints *SchedulingConstraints) GetMaxQueueLookBack() uint
Constants ¶
View Source
const ( // Indicates that the limit on resources scheduled per round has been exceeded. MaximumResourcesScheduledUnschedulableReason = "maximum resources scheduled" // Indicates that a queue has been assigned more than its allowed amount of resources. MaximumResourcesPerQueueExceededUnschedulableReason = "maximum total resources for this queue exceeded" // Indicates that the scheduling rate limit has been exceeded. GlobalRateLimitExceededUnschedulableReason = "global scheduling rate limit exceeded" QueueRateLimitExceededUnschedulableReason = "queue scheduling rate limit exceeded" // Indicates that scheduling a gang would exceed the rate limit. GlobalRateLimitExceededByGangUnschedulableReason = "gang would exceed global scheduling rate limit" QueueRateLimitExceededByGangUnschedulableReason = "gang would exceed queue scheduling rate limit" // Indicates that the number of jobs in a gang exceeds the burst size. // This means the gang can not be scheduled without first increasing the burst size. GangExceedsGlobalBurstSizeUnschedulableReason = "gang cardinality too large: exceeds global max burst size" GangExceedsQueueBurstSizeUnschedulableReason = "gang cardinality too large: exceeds queue max burst size" // Indicates that jobs cannot be scheduled due current executor state GangDoesNotFitUnschedulableReason = "unable to schedule gang since minimum cardinality not met" JobDoesNotFitUnschedulableReason = "job does not fit on any node" UnschedulableReasonMaximumResourcesExceeded = "resource limit exceeded" )
Variables ¶
This section is empty.
Functions ¶
func IsTerminalQueueUnschedulableReason ¶ added in v0.3.92
IsTerminalQueueUnschedulableReason returns true if reason indicates it's not possible to schedule any more jobs from this queue in this round.
func IsTerminalUnschedulableReason ¶ added in v0.3.66
IsTerminalUnschedulableReason returns true if reason indicates it's not possible to schedule any more jobs in this round.
func ScaleQuantity ¶ added in v0.3.71
ScaleQuantity scales q in-place by a factor f. This functions overflows for quantities the milli value of which can't be expressed as an int64. E.g., 1Pi is ok, but not 10Pi.
func UnschedulableReasonIsPropertyOfGang ¶ added in v0.9.7
Types ¶
type SchedulingConstraints ¶
type SchedulingConstraints struct {
// contains filtered or unexported fields
}
SchedulingConstraints contains scheduling constraints, e.g., per-queue resource limits.
func NewSchedulingConstraints ¶ added in v0.4.29
func NewSchedulingConstraints( pool string, totalResources schedulerobjects.ResourceList, config configuration.SchedulingConfig, queues []*api.Queue, ) SchedulingConstraints
func (*SchedulingConstraints) CapResources ¶ added in v0.9.4
func (constraints *SchedulingConstraints) CapResources(queue string, resourcesByPc schedulerobjects.QuantityByTAndResourceType[string]) schedulerobjects.QuantityByTAndResourceType[string]
func (*SchedulingConstraints) CheckConstraints ¶ added in v0.3.92
func (constraints *SchedulingConstraints) CheckConstraints( sctx *schedulercontext.SchedulingContext, gctx *schedulercontext.GangSchedulingContext, ) (bool, string, error)
func (*SchedulingConstraints) CheckRoundConstraints ¶ added in v0.3.66
func (constraints *SchedulingConstraints) CheckRoundConstraints(sctx *schedulercontext.SchedulingContext) (bool, string, error)
func (*SchedulingConstraints) GetMaxQueueLookBack ¶ added in v0.8.0
func (constraints *SchedulingConstraints) GetMaxQueueLookBack() uint
Click to show internal directories.
Click to hide internal directories.