Interface CapacitySchedulerPreemptionContext
- All Known Implementing Classes:
ProportionalCapacityPreemptionPolicy
public interface CapacitySchedulerPreemptionContext
This interface provides context for the calculation of ideal allocation
and preemption for the
CapacityScheduler.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartitionToUnderServedQueues(String queueName, String partition) intbooleanlongbooleanSet<org.apache.hadoop.yarn.api.records.ContainerId>floatdoublefloatdoubleorg.apache.hadoop.yarn.api.records.ResourcegetPartitionResource(String partition) getQueueByPartition(String queueName, String partition) getQueuePartitions(String queueName) org.apache.hadoop.yarn.util.resource.ResourceCalculatorgetUnderServedQueuesPerPartition(String partition) boolean
-
Method Details
-
getScheduler
CapacityScheduler getScheduler() -
getQueueByPartition
-
getQueuePartitions
-
getResourceCalculator
org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator() -
getRMContext
RMContext getRMContext() -
isObserveOnly
boolean isObserveOnly() -
getKillableContainers
Set<org.apache.hadoop.yarn.api.records.ContainerId> getKillableContainers() -
getMaxIgnoreOverCapacity
double getMaxIgnoreOverCapacity() -
getNaturalTerminationFactor
double getNaturalTerminationFactor() -
getLeafQueueNames
-
getAllPartitions
-
getClusterMaxApplicationPriority
int getClusterMaxApplicationPriority() -
getPartitionResource
-
getUnderServedQueuesPerPartition
-
addPartitionToUnderServedQueues
-
getMinimumThresholdForIntraQueuePreemption
float getMinimumThresholdForIntraQueuePreemption() -
getMaxAllowableLimitForIntraQueuePreemption
float getMaxAllowableLimitForIntraQueuePreemption() -
getDefaultMaximumKillWaitTimeout
long getDefaultMaximumKillWaitTimeout() -
getIntraQueuePreemptionOrderPolicy
@Unstable ProportionalCapacityPreemptionPolicy.IntraQueuePreemptionOrderPolicy getIntraQueuePreemptionOrderPolicy() -
getCrossQueuePreemptionConservativeDRF
boolean getCrossQueuePreemptionConservativeDRF() -
getInQueuePreemptionConservativeDRF
boolean getInQueuePreemptionConservativeDRF()
-