public class StageExecutionIntervalByDemand extends Object implements StageExecutionInterval
StageExecutionInterval, which sets the execution
 interval of the stage. For ANY and ALL jobs, the interval is
 [jobArrival,jobDeadline]. For ORDER jobs, the the maximal possible time
 interval is divided as follows: First, each stage is guaranteed at least its
 requested duration. Then, the stage receives a fraction of the remaining
 time. The fraction is calculated as the ratio between the weight (total
 requested resources) of the stage and the total weight of all remaining
 stages.| Constructor and Description | 
|---|
| StageExecutionIntervalByDemand() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected double | calcWeight(org.apache.hadoop.yarn.api.records.ReservationRequest stage) | 
| 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. | 
| protected long | getRoundedDuration(org.apache.hadoop.yarn.api.records.ReservationRequest stage,
                  Long s) | 
| protected static long | stepRoundDown(long t,
             long s) | 
| protected static long | stepRoundUp(long t,
           long s) | 
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)
StageExecutionIntervalcomputeExecutionInterval in interface StageExecutionIntervalplan - 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 jobprotected double calcWeight(org.apache.hadoop.yarn.api.records.ReservationRequest stage)
protected long getRoundedDuration(org.apache.hadoop.yarn.api.records.ReservationRequest stage,
                                  Long s)
protected static long stepRoundDown(long t,
                                    long s)
protected static long stepRoundUp(long t,
                                  long s)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.