@InterfaceAudience.Private @InterfaceStability.Unstable public class FSSchedulerNode extends SchedulerNode
| Constructor and Description |
|---|
FSSchedulerNode(RMNode node,
boolean usePortForNodeName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocateContainer(RMContainer rmContainer,
boolean launchedOnNode)
The Scheduler has allocated containers on this node to the given
application.
|
void |
releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
boolean releasedByNode)
Release an allocated container on this node.
|
void |
reserveResource(SchedulerApplicationAttempt application,
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
RMContainer container)
Reserve container for the attempt on this node.
|
void |
unreserveResource(SchedulerApplicationAttempt application)
Unreserve resources on this node.
|
allocateContainer, containerStarted, deductUnallocatedResource, equals, getAggregatedContainersUtilization, getAllocatedResource, getContainer, getCopiedListOfRunningContainers, getHttpAddress, getLabels, getLastHeartbeatMonotonicTime, getNodeAttributes, getNodeID, getNodeName, getNodeUtilization, getNumContainers, getPartition, getRackName, getReservedContainer, getRMNode, getRunningContainersWithAMsAtTheEnd, getTotalResource, getUnallocatedResource, hashCode, isValidContainer, notifyNodeUpdate, recoverContainer, setAggregatedContainersUtilization, setNodeUtilization, setReservedContainer, toString, updateLabels, updateNodeAttributes, updateResourceForReleasedContainer, updateTotalResourcepublic FSSchedulerNode(RMNode node, boolean usePortForNodeName)
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container)
SchedulerNodereserveResource in class SchedulerNodeapplication - Application attempt asking for the reservation.schedulerKey - Priority of the reservation.container - Container reserving resources for.public void unreserveResource(SchedulerApplicationAttempt application)
SchedulerNodeunreserveResource in class SchedulerNodeapplication - Application attempt that had done the reservation.protected void allocateContainer(RMContainer rmContainer, boolean launchedOnNode)
allocateContainer in class SchedulerNodermContainer - Allocated containerlaunchedOnNode - True if the container has been launchedpublic void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
boolean releasedByNode)
releaseContainer in class SchedulerNodecontainerId - ID of container to be released.releasedByNode - whether the release originates from a node update.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.