Class FiCaSchedulerNode
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNode
org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica.FiCaSchedulerNode
-
Constructor Summary
ConstructorsConstructorDescriptionFiCaSchedulerNode(RMNode node, boolean usePortForNodeName) FiCaSchedulerNode(RMNode node, boolean usePortForNodeName, Set<String> nodeLabels) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateContainer(RMContainer rmContainer, boolean launchedOnNode) The Scheduler has allocated containers on this node to the given application.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> org.apache.hadoop.yarn.api.records.ResourcevoidmarkContainerToKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) voidmarkContainerToNonKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) voidreserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey priority, RMContainer container) Reserve container for the attempt on this node.voidunreserveResource(SchedulerApplicationAttempt application) Unreserve resources on this node.protected voidupdateResourceForReleasedContainer(org.apache.hadoop.yarn.api.records.Container container) Update the resources of the node when releasing a container.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, releaseContainer, setAggregatedContainersUtilization, setNodeUtilization, setOvercommitTimeOut, setReservedContainer, toString, updateLabels, updateNodeAttributes, updateTotalResource
-
Constructor Details
-
FiCaSchedulerNode
-
FiCaSchedulerNode
-
-
Method Details
-
reserveResource
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey priority, 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.priority- 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.
-
markContainerToKillable
public void markContainerToKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) -
markContainerToNonKillable
public void markContainerToNonKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) -
updateResourceForReleasedContainer
protected void updateResourceForReleasedContainer(org.apache.hadoop.yarn.api.records.Container container) Description copied from class:SchedulerNodeUpdate the resources of the node when releasing a container.- Overrides:
updateResourceForReleasedContainerin classSchedulerNode- Parameters:
container- Container to release.
-
getTotalKillableResources
public org.apache.hadoop.yarn.api.records.Resource getTotalKillableResources() -
getKillableContainers
-
allocateContainer
Description copied from class:SchedulerNodeThe 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
-