You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "jackwangcs (Jira)" <ji...@apache.org> on 2021/09/10 02:59:00 UTC

[jira] [Commented] (YARN-10902) Resources on application blacklisted node with reserved container can not allocate to other applications

    [ https://issues.apache.org/jira/browse/YARN-10902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412926#comment-17412926 ] 

jackwangcs commented on YARN-10902:
-----------------------------------

Hi [~Tao Yang], [~bteke], [~snemeth], could you help to review this path?
Thanks.

> Resources on application blacklisted node with reserved container can not allocate to other applications
> --------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-10902
>                 URL: https://issues.apache.org/jira/browse/YARN-10902
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacityscheduler
>            Reporter: jackwangcs
>            Assignee: jackwangcs
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If a node has reserved container of an application and the application adds this node into its blacklist, resources on the node can not allocate to other applications in the current allocation process.
>  In RegularContainerAllocator, if it finds the node is in blacklist, it will not allocate resources. Furthermore, this node has a reserved container, other queues or application will not have opportunity to allocate.
> {code:java}
> ContainerAllocation tryAllocateOnNode(Resource clusterResource,
>     FiCaSchedulerNode node, SchedulingMode schedulingMode,
>     ResourceLimits resourceLimits, SchedulerRequestKey schedulerKey,
>     RMContainer reservedContainer) {
>   ContainerAllocation result;
>   // Sanity checks before assigning to this node
>   result = checkIfNodeBlackListed(node, schedulerKey);
>   if (null != result) {
>     return result;
>   }
>   // ....
> }{code}
> In this case, the reserved container should be cancelled. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org