Class FSSchedulerNode
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNode
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSSchedulerNode
Fair Scheduler specific node features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateContainer(RMContainer rmContainer, boolean launchedOnNode) The Scheduler has allocated containers on this node to the given application.voidreleaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, boolean releasedByNode) Release an allocated container on this node.voidreserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container) Reserve container for the attempt on this node.voidunreserveResource(SchedulerApplicationAttempt application) Unreserve resources on this node.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNode
allocateContainer, containerStarted, deductUnallocatedResource, equals, getAggregatedContainersUtilization, getAllocatedResource, getContainer, getContainersToKill, getCopiedListOfRunningContainers, getHttpAddress, getLabels, getLastHeartbeatMonotonicTime, getLaunchedContainers, getNodeAttributes, getNodeID, getNodeName, getNodeUtilization, getNumContainers, getPartition, getRackName, getReservedContainer, getRMNode, getRunningContainersWithAMsAtTheEnd, getTotalResource, getUnallocatedResource, hashCode, isOvercommitTimedOut, isOvercommitTimeOutSet, isValidContainer, notifyNodeUpdate, recoverContainer, setAggregatedContainersUtilization, setNodeUtilization, setOvercommitTimeOut, setReservedContainer, toString, updateLabels, updateNodeAttributes, updateResourceForReleasedContainer, updateTotalResource
-
Constructor Details
-
FSSchedulerNode
-
-
Method Details
-
reserveResource
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container) Description copied from class:SchedulerNodeReserve container for the attempt on this node.- Specified by:
reserveResourcein classSchedulerNode- Parameters:
application- Application attempt asking for the reservation.schedulerKey- Priority of the reservation.container- Container reserving resources for.
-
unreserveResource
Description copied from class:SchedulerNodeUnreserve resources on this node.- Specified by:
unreserveResourcein classSchedulerNode- Parameters:
application- Application attempt that had done the reservation.
-
allocateContainer
The Scheduler has allocated containers on this node to the given application.- Overrides:
allocateContainerin classSchedulerNode- Parameters:
rmContainer- Allocated containerlaunchedOnNode- True if the container has been launched
-
releaseContainer
public void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, boolean releasedByNode) Release an allocated container on this node. It also releases from the reservation list to trigger preemption allocations.- Overrides:
releaseContainerin classSchedulerNode- Parameters:
containerId- ID of container to be released.releasedByNode- whether the release originates from a node update.
-