Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
As per the current implementation for AM blacklisting, disabling is based on complete cluster resource.
Incase of partitioned cluster though, nodes applicable for AM labels only should be considered as total nodes.
Additionally for unmanaged AM as AM blacklisting is not done as AM is not launched by RM, it is equivalent to AM blacklisting being disabled for this app. Hence we do not need to create a SimpleBlacklistManager object in RMAppImpl#createNewAttempt.
We can create DisabledBlacklistManager object instead.
BlacklistManager currentAMBlacklist; if (currentAttempt != null) { currentAMBlacklist = currentAttempt.getAMBlacklist(); } else { if (amBlacklistingEnabled) { currentAMBlacklist = new SimpleBlacklistManager( scheduler.getNumClusterNodes(), blacklistDisableThreshold); } else { currentAMBlacklist = new DisabledBlacklistManager(); } }
Attachments
Attachments
Issue Links
- is related to
-
YARN-6148 NM node count reported to AM in Allocate Response should consider requested node label partitions.
- Patch Available