Class SimpleBlacklistManager
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.blacklist.SimpleBlacklistManager
- All Implemented Interfaces:
BlacklistManager
Maintains a list of failed nodes and returns that as long as number of
blacklisted nodes is below a threshold percentage of total nodes. If more
than threshold number of nodes are marked as failure they all are returned
as removal from blacklist so previous additions are reversed.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBlacklistManager(int numberOfNodeManagerHosts, double blacklistDisableFailureThreshold) -
Method Summary
Modifier and TypeMethodDescriptionvoidReport failure of a container on node.org.apache.hadoop.yarn.api.records.ResourceBlacklistRequestGetResourceBlacklistRequestthat indicate which nodes should be added or to removed from the blacklist.voidrefreshNodeHostCount(int nodeHostCount) Refresh the number of NodeManagers available for scheduling.
-
Constructor Details
-
SimpleBlacklistManager
public SimpleBlacklistManager(int numberOfNodeManagerHosts, double blacklistDisableFailureThreshold)
-
-
Method Details
-
addNode
Description copied from interface:BlacklistManagerReport failure of a container on node.- Specified by:
addNodein interfaceBlacklistManager- Parameters:
node- that has a container failure
-
refreshNodeHostCount
public void refreshNodeHostCount(int nodeHostCount) Description copied from interface:BlacklistManagerRefresh the number of NodeManagers available for scheduling.- Specified by:
refreshNodeHostCountin interfaceBlacklistManager- Parameters:
nodeHostCount- is the number of node hosts.
-
getBlacklistUpdates
public org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest getBlacklistUpdates()Description copied from interface:BlacklistManagerGetResourceBlacklistRequestthat indicate which nodes should be added or to removed from the blacklist.- Specified by:
getBlacklistUpdatesin interfaceBlacklistManager- Returns:
ResourceBlacklistRequest
-