@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, 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
public FSSchedulerNode(RMNode node, boolean usePortForNodeName)
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container)
SchedulerNode
reserveResource
in class SchedulerNode
application
- Application attempt asking for the reservation.schedulerKey
- Priority of the reservation.container
- Container reserving resources for.public void unreserveResource(SchedulerApplicationAttempt application)
SchedulerNode
unreserveResource
in class SchedulerNode
application
- Application attempt that had done the reservation.protected void allocateContainer(RMContainer rmContainer, boolean launchedOnNode)
allocateContainer
in class SchedulerNode
rmContainer
- Allocated containerlaunchedOnNode
- True if the container has been launchedpublic void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, boolean releasedByNode)
releaseContainer
in class SchedulerNode
containerId
- ID of container to be released.releasedByNode
- whether the release originates from a node update.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.