@InterfaceAudience.Private @InterfaceStability.Unstable public class FSSchedulerApp extends SchedulerApplicationAttempt
SchedulerApplicationAttempt.ContainersAndNMTokensAllocationappSchedulingInfo, currentConsumption, currentReservation, isStopped, lastScheduledContainer, liveContainers, newlyAllocatedContainers, queue, reservedContainers, rmContext| Constructor and Description |
|---|
FSSchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
FSLeafQueue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreemption(RMContainer container,
long time) |
RMContainer |
allocate(NodeType type,
FSSchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ResourceRequest request,
org.apache.hadoop.yarn.api.records.Container container) |
void |
clearPreemptedResources() |
void |
containerCompleted(RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event) |
NodeType |
getAllowedLocalityLevel(org.apache.hadoop.yarn.api.records.Priority priority,
int numNodes,
double nodeLocalityThreshold,
double rackLocalityThreshold)
Return the level at which we are allowed to schedule containers, given the
current size of the cluster and thresholds indicating how many nodes to
fail at (as a fraction of cluster size) before relaxing scheduling
constraints.
|
NodeType |
getAllowedLocalityLevelByTime(org.apache.hadoop.yarn.api.records.Priority priority,
long nodeLocalityDelayMs,
long rackLocalityDelayMs,
long currentTimeMs)
Return the level at which we are allowed to schedule containers.
|
AppSchedulable |
getAppSchedulable() |
Long |
getContainerPreemptionTime(RMContainer container) |
float |
getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes) |
org.apache.hadoop.yarn.api.records.Resource |
getPreemptedResources() |
Set<RMContainer> |
getPreemptionContainers() |
FSLeafQueue |
getQueue() |
void |
resetAllowedLocalityLevel(org.apache.hadoop.yarn.api.records.Priority priority,
NodeType level)
Should be called when the scheduler assigns a container at a higher
degree of locality than the current threshold.
|
void |
resetPreemptedResources() |
void |
setAppSchedulable(AppSchedulable appSchedulable) |
void |
unreserve(FSSchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority) |
addReReservation, addSchedulingOpportunity, containerLaunchedOnNode, getAMResource, getApplicationAttemptId, getApplicationId, getCurrentConsumption, getCurrentReservation, getHeadroom, getLastScheduledContainer, getLiveContainers, getLiveContainersMap, getNewContainerId, getNumReservedContainers, getPriorities, getQueueName, getReReservations, getReservedContainers, getResource, getResourceLimit, getResourceRequest, getResourceRequests, getResourceUsageReport, getRMContainer, getSchedulingOpportunities, getTotalRequiredResources, getUnmanagedAM, getUser, isAmRunning, isBlacklisted, isPending, isReserved, isStopped, move, pullNewlyAllocatedContainersAndNMTokens, recoverContainer, recoverResourceRequests, reserve, resetReReservations, resetSchedulingOpportunities, resetSchedulingOpportunities, setAMResource, setAmRunning, setHeadroom, showRequests, stop, subtractSchedulingOpportunity, transferStateFromPreviousAttempt, updateBlacklist, updateResourceRequestspublic FSSchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
FSLeafQueue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext)
public void setAppSchedulable(AppSchedulable appSchedulable)
public AppSchedulable getAppSchedulable()
public void containerCompleted(RMContainer rmContainer, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus, RMContainerEventType event)
public void unreserve(FSSchedulerNode node, org.apache.hadoop.yarn.api.records.Priority priority)
public float getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes)
public NodeType getAllowedLocalityLevel(org.apache.hadoop.yarn.api.records.Priority priority, int numNodes, double nodeLocalityThreshold, double rackLocalityThreshold)
public NodeType getAllowedLocalityLevelByTime(org.apache.hadoop.yarn.api.records.Priority priority, long nodeLocalityDelayMs, long rackLocalityDelayMs, long currentTimeMs)
public RMContainer allocate(NodeType type, FSSchedulerNode node, org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.ResourceRequest request, org.apache.hadoop.yarn.api.records.Container container)
public void resetAllowedLocalityLevel(org.apache.hadoop.yarn.api.records.Priority priority,
NodeType level)
public void addPreemption(RMContainer container, long time)
public Long getContainerPreemptionTime(RMContainer container)
public Set<RMContainer> getPreemptionContainers()
public FSLeafQueue getQueue()
getQueue in class SchedulerApplicationAttemptpublic org.apache.hadoop.yarn.api.records.Resource getPreemptedResources()
public void resetPreemptedResources()
public void clearPreemptedResources()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.