public class StageExecutionIntervalUnconstrained extends Object implements StageExecutionInterval
StageExecutionInterval
which gives each stage
the maximal possible time interval, given the job constraints. Specifically,
for ANY and ALL jobs, the interval would be [jobArrival, jobDeadline). For
ORDER jobs, the stage cannot start before its predecessors (if allocateLeft
== true) or cannot end before its successors (if allocateLeft == false)Constructor and Description |
---|
StageExecutionIntervalUnconstrained() |
Modifier and Type | Method and Description |
---|---|
ReservationInterval |
computeExecutionInterval(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition reservation,
org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage,
boolean allocateLeft,
RLESparseResourceAllocation allocations)
Computes the earliest allowed starting time for a given stage.
|
public ReservationInterval computeExecutionInterval(Plan plan, org.apache.hadoop.yarn.api.records.ReservationDefinition reservation, org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage, boolean allocateLeft, RLESparseResourceAllocation allocations)
StageExecutionInterval
computeExecutionInterval
in interface StageExecutionInterval
plan
- the Plan to which the reservation must be fittedreservation
- the job contractcurrentReservationStage
- the stageallocateLeft
- is the job allocated from left to rightallocations
- Existing resource assignments for the jobCopyright © 2022 Apache Software Foundation. All rights reserved.