@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Unstable public class CapacityReservationSystem extends AbstractReservationSystem
ReservationSystem
based on the
CapacityScheduler
conf, 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, synchronizePlan
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public void reinitialize(org.apache.hadoop.conf.Configuration conf, RMContext rmContext) throws org.apache.hadoop.yarn.exceptions.YarnException
ReservationSystem
ReservationSystem
.reinitialize
in interface ReservationSystem
reinitialize
in class AbstractReservationSystem
conf
- configurationrmContext
- current context of the ResourceManager
org.apache.hadoop.yarn.exceptions.YarnException
- if initialization of the configured plan failsprotected org.apache.hadoop.yarn.api.records.Resource getMinAllocation()
getMinAllocation
in class AbstractReservationSystem
protected org.apache.hadoop.yarn.api.records.Resource getMaxAllocation()
getMaxAllocation
in class AbstractReservationSystem
protected org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()
getResourceCalculator
in class AbstractReservationSystem
protected QueueMetrics getRootQueueMetrics()
getRootQueueMetrics
in class AbstractReservationSystem
protected String getPlanQueuePath(String planQueueName)
getPlanQueuePath
in class AbstractReservationSystem
protected org.apache.hadoop.yarn.api.records.Resource getPlanQueueCapacity(String planQueueName)
getPlanQueueCapacity
in class AbstractReservationSystem
public Plan getPlan(String planName)
ReservationSystem
Plan
that has been initialized.getPlan
in interface ReservationSystem
getPlan
in class AbstractReservationSystem
planName
- the name of the Plan
Plan
identified by nameprotected ReservationSchedulerConfiguration getReservationSchedulerConfiguration()
getReservationSchedulerConfiguration
in class AbstractReservationSystem
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.