public class StageAllocatorGreedyRLE extends Object implements StageAllocator
| Constructor and Description |
|---|
StageAllocatorGreedyRLE(boolean allocateLeft) |
| Modifier and Type | Method and Description |
|---|---|
Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
computeStageAllocation(Plan plan,
Map<Long,org.apache.hadoop.yarn.api.records.Resource> planLoads,
RLESparseResourceAllocation planModifications,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageEarliestStart,
long stageDeadline,
String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId)
Computes the allocation of a stage inside a defined time interval.
|
public Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> computeStageAllocation(Plan plan, Map<Long,org.apache.hadoop.yarn.api.records.Resource> planLoads, RLESparseResourceAllocation planModifications, org.apache.hadoop.yarn.api.records.ReservationRequest rr, long stageEarliestStart, long stageDeadline, String user, org.apache.hadoop.yarn.api.records.ReservationId oldId) throws PlanningException
StageAllocatorcomputeStageAllocation in interface StageAllocatorplan - the Plan to which the reservation must be fittedplanLoads - a 'dirty' read of the plan loads at each timeplanModifications - the allocations performed by the planning
algorithm which are not yet reflected by planrr - the stagestageEarliestStart - the arrival time (earliest starting time) set for
the stage by the two phase planning algorithmstageDeadline - the deadline of the stage set by the two phase
planning algorithmPlanningExceptionCopyright © 2017 Apache Software Foundation. All Rights Reserved.