@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Unstable public class CapacityReservationSystem extends AbstractReservationSystem
ReservationSystem based on the
CapacitySchedulerconf, planStepSize| Constructor and Description |
|---|
CapacityReservationSystem() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.yarn.api.records.Resource |
getMaxAllocation() |
protected org.apache.hadoop.yarn.api.records.Resource |
getMinAllocation() |
Plan |
getPlan(String planName)
Get an existing
Plan that has been initialized. |
protected org.apache.hadoop.yarn.api.records.Resource |
getPlanQueueCapacity(String planQueueName) |
protected String |
getPlanQueuePath(String planQueueName) |
protected ReservationSchedulerConfiguration |
getReservationSchedulerConfiguration() |
protected org.apache.hadoop.yarn.util.resource.ResourceCalculator |
getResourceCalculator() |
protected QueueMetrics |
getRootQueueMetrics() |
void |
reinitialize(org.apache.hadoop.conf.Configuration conf,
RMContext rmContext)
Re-initialize the
ReservationSystem. |
getAdmissionPolicy, getAgent, getAllPlans, getDefaultReservationSystem, getNewReservationId, getPlanFollowerTimeStep, getQueueForReservation, getReplanner, getReservationsACLsManager, initializePlan, recover, serviceInit, serviceStart, serviceStop, setQueueForReservation, setRMContext, synchronizePlanclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic void reinitialize(org.apache.hadoop.conf.Configuration conf,
RMContext rmContext)
throws org.apache.hadoop.yarn.exceptions.YarnException
ReservationSystemReservationSystem.reinitialize in interface ReservationSystemreinitialize in class AbstractReservationSystemconf - configurationrmContext - current context of the ResourceManagerorg.apache.hadoop.yarn.exceptions.YarnException - if initialization of the configured plan failsprotected org.apache.hadoop.yarn.api.records.Resource getMinAllocation()
getMinAllocation in class AbstractReservationSystemprotected org.apache.hadoop.yarn.api.records.Resource getMaxAllocation()
getMaxAllocation in class AbstractReservationSystemprotected org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()
getResourceCalculator in class AbstractReservationSystemprotected QueueMetrics getRootQueueMetrics()
getRootQueueMetrics in class AbstractReservationSystemprotected String getPlanQueuePath(String planQueueName)
getPlanQueuePath in class AbstractReservationSystemprotected org.apache.hadoop.yarn.api.records.Resource getPlanQueueCapacity(String planQueueName)
getPlanQueueCapacity in class AbstractReservationSystempublic Plan getPlan(String planName)
ReservationSystemPlan that has been initialized.getPlan in interface ReservationSystemgetPlan in class AbstractReservationSystemplanName - the name of the PlanPlan identified by nameprotected ReservationSchedulerConfiguration getReservationSchedulerConfiguration()
getReservationSchedulerConfiguration in class AbstractReservationSystemCopyright © 2008–2024 Apache Software Foundation. All rights reserved.