Interface PreemptableResourceScheduler
- All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent>,Recoverable,ResourceScheduler,YarnScheduler
- All Known Implementing Classes:
CapacityScheduler
Interface for a scheduler that supports preemption/killing
-
Method Summary
Modifier and TypeMethodDescriptionvoidkillReservedContainer(RMContainer container) If the scheduler support container reservations, this method is used to ask the scheduler to drop the reservation for the given container.voidmarkContainerForKillable(RMContainer container) Ask the scheduler to forcibly interrupt the container given as input.voidmarkContainerForPreemption(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid, RMContainer container) Ask the scheduler to obtain back the container from a specific application by issuing a preemption requestMethods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handleMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.recovery.Recoverable
recoverMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler
attemptAllocationOnNode, getNodeIds, reinitialize, resetSchedulerMetrics, setRMContextMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.YarnScheduler
addQueue, allocate, checkAccess, checkAndGetApplicationLifetime, checkAndGetApplicationPriority, getAppResourceUsageReport, getAppsInQueue, getClusterResource, getMaxClusterLevelAppPriority, getMaximumApplicationLifetime, getMaximumResourceCapability, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNormalizedResource, getNumClusterNodes, getPendingResourceRequestsForAttempt, getPendingSchedulingRequestsForAttempt, getPlanQueues, getQueueInfo, getQueueUserAclInfo, getResourceCalculator, getRMContainer, getRootQueueMetrics, getSchedulerAppInfo, getSchedulerNode, getSchedulingResourceTypes, getTransferredContainers, killAllAppsInQueue, moveAllApps, moveApplication, preValidateMoveApplication, removeQueue, setClusterMaxPriority, setEntitlement, updateApplicationPriority
-
Method Details
-
killReservedContainer
If the scheduler support container reservations, this method is used to ask the scheduler to drop the reservation for the given container.- Parameters:
container- Reference to reserved container allocation.
-
markContainerForPreemption
void markContainerForPreemption(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid, RMContainer container) Ask the scheduler to obtain back the container from a specific application by issuing a preemption request- Parameters:
aid- the application from which we want to get a container backcontainer- the container we want back
-
markContainerForKillable
Ask the scheduler to forcibly interrupt the container given as input.- Parameters:
container- RMContainer.
-