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 "zhuqi (Jira)" <ji...@apache.org> on 2020/12/11 15:37:00 UTC

[jira] [Issue Comment Deleted] (YARN-10169) Mixed absolute resource value and percentage-based resource value in CapacityScheduler should fail

     [ https://issues.apache.org/jira/browse/YARN-10169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zhuqi updated YARN-10169:
-------------------------
    Comment: was deleted

(was: [~leftnoteasy]

I look into the source code, and test locally, we allow the scheduler max capacity like:

a.max (absolute), a1.max (percentage), a2.max (absolute), a2_1.max (percentage).

We calculate percentage below absolute, when update absolute resources from parent:
{code:java}
float maxCapacity = queueCapacities.getMaximumCapacity(label);
if (maxCapacity > 0f) {
 queueCapacities.setAbsoluteMaximumCapacity(label, maxCapacity * (
 parentQueueCapacities == null ?
 1 :
 parentQueueCapacities.getAbsoluteMaximumCapacity(label)));
}
{code}
When a2.max (absolute) updated to AbsoluteMaximumCapacity, a2_1.max (percentage below absolute) will be  calculated and update for children.

And we need add document for this configuration.

Thanks.)

> Mixed absolute resource value and percentage-based resource value in CapacityScheduler should fail
> --------------------------------------------------------------------------------------------------
>
>                 Key: YARN-10169
>                 URL: https://issues.apache.org/jira/browse/YARN-10169
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Wangda Tan
>            Assignee: zhuqi
>            Priority: Blocker
>         Attachments: YARN-10169.001.patch, YARN-10169.002.patch, YARN-10169.003.patch
>
>
> To me this is a bug: if there's a queue has capacity set to float, and maximum-capacity set to absolute value. Existing logic allows the behavior.
> For example:
> {code:java}
> queue.capacity = 0.8 
> queue.maximum-capacity = [mem=x, vcore=y] {code}
> We should throw exception when configured like this.



--
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