public interface PreemptableResourceScheduler extends ResourceScheduler
Modifier and Type | Method and Description |
---|---|
void |
dropContainerReservation(RMContainer container)
If the scheduler support container reservations, this method is used to
ask the scheduler to drop the reservation for the given container.
|
void |
killContainer(RMContainer container)
Ask the scheduler to forcibly interrupt the container given as input
|
void |
preemptContainer(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
|
reinitialize, setRMContext
addQueue, allocate, checkAccess, getAppResourceUsageReport, getAppsInQueue, getClusterResource, getMaximumResourceCapability, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNumClusterNodes, getPlanQueues, getQueueInfo, getQueueUserAclInfo, getResourceCalculator, getRMContainer, getRootQueueMetrics, getSchedulerAppInfo, getSchedulingResourceTypes, killAllAppsInQueue, moveAllApps, moveApplication, removeQueue, setEntitlement
recover
void dropContainerReservation(RMContainer container)
container
- Reference to reserved container allocation.void preemptContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid, RMContainer container)
aid
- the application from which we want to get a container backcontainer
- the container we want backvoid killContainer(RMContainer container)
container
- Copyright © 2015 Apache Software Foundation. All Rights Reserved.