public class FiCaSchedulerNode extends SchedulerNode
Constructor and Description |
---|
FiCaSchedulerNode(RMNode node,
boolean usePortForNodeName) |
FiCaSchedulerNode(RMNode node,
boolean usePortForNodeName,
Set<String> nodeLabels) |
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.
|
Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
getKillableContainers() |
org.apache.hadoop.yarn.api.records.Resource |
getTotalKillableResources() |
void |
markContainerToKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
markContainerToNonKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
reserveResource(SchedulerApplicationAttempt application,
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey priority,
RMContainer container)
Reserve container for the attempt on this node.
|
void |
unreserveResource(SchedulerApplicationAttempt application)
Unreserve resources on this node.
|
protected void |
updateResourceForReleasedContainer(org.apache.hadoop.yarn.api.records.Container container)
Update the resources of the node when releasing a container.
|
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
public FiCaSchedulerNode(RMNode node, boolean usePortForNodeName, Set<String> nodeLabels)
public FiCaSchedulerNode(RMNode node, boolean usePortForNodeName)
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey priority, RMContainer container)
SchedulerNode
reserveResource
in class SchedulerNode
application
- Application attempt asking for the reservation.priority
- 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.public void markContainerToKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId)
public void markContainerToNonKillable(org.apache.hadoop.yarn.api.records.ContainerId containerId)
protected void updateResourceForReleasedContainer(org.apache.hadoop.yarn.api.records.Container container)
SchedulerNode
updateResourceForReleasedContainer
in class SchedulerNode
container
- Container to release.public org.apache.hadoop.yarn.api.records.Resource getTotalKillableResources()
public Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> getKillableContainers()
protected void allocateContainer(RMContainer rmContainer, boolean launchedOnNode)
SchedulerNode
allocateContainer
in class SchedulerNode
rmContainer
- Allocated containerlaunchedOnNode
- True if the container has been launchedCopyright © 2008–2024 Apache Software Foundation. All rights reserved.