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 "tuyu (Jira)" <ji...@apache.org> on 2022/03/09 11:39:00 UTC
[jira] [Updated] (YARN-11083) Wrong ResourceLimit calc logic when use DRC comparator cause too many "Failed to accept this proposal"
[ https://issues.apache.org/jira/browse/YARN-11083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
tuyu updated YARN-11083:
------------------------
Description:
in our cluster: 6k+ node, 600+ queues, when cluster is very busy, the commit fail metric will more then 50+ thousand,so, we To reproduce this case:
Queue tree:
{code:java}
Root max <60G, 100>
/
A max <60G, 100>
/ \
A1 A2
max<5G,100> max<40,70>
{code}
Test this situation
A2 allocate <30GB, 1> then A has <30, 99>
A1 allocate <10, 1>
expected behavior is checkHeadRoom will reject this request,because queue max capacity is <5g,100vcore>.
but getCurrentLimitResource use DominantResourceCalculator resourceCalculator.min will return resouceLimit == <30G,99>. because cpu is max share, that will cause scheduler thread will allocate <10G, 1vcore> success, but the commit thread tryCommit use AbstractCSQueue.accept Resources.fitsIn check memory and vcore and fail the <10G, 1vcore> commit
Based on this analysis:
getCurrentLimitResource return
{code:java}
return Resources.componentwiseMin(
Resources.min(resourceCalculator, clusterResource,
queueMaxResource, currentResourceLimits.getLimit()),
queueMaxResource);
{code}
was:
in our cluster: 6k+ node, 600+ queues, when cluster is very busy, the commit fail metric will more then 50+ thousand,so, we To reproduce this case:
Queue tree:
Root max <60G, 100>
/
A max <60G, 100>
/ \
A1 A2
max<5G,100> max<40,70>
Test this situation
A2 allocate <30GB, 1> then A has <30, 99>
A1 allocate <10, 1>
expected behavior is checkHeadRoom will reject this request,because queue max capacity is <5g,100vcore>.
but getCurrentLimitResource use DominantResourceCalculator resourceCalculator.min will return resouceLimit == <30G,99>. because cpu is max share, that will cause scheduler thread will allocate <10G, 1vcore> success, but the commit thread tryCommit use AbstractCSQueue.accept Resources.fitsIn check memory and vcore and fail the <10G, 1vcore> commit
Based on this analysis:
getCurrentLimitResource return
{code:java}
return Resources.componentwiseMin(
Resources.min(resourceCalculator, clusterResource,
queueMaxResource, currentResourceLimits.getLimit()),
queueMaxResource);
{code}
> Wrong ResourceLimit calc logic when use DRC comparator cause too many "Failed to accept this proposal"
> ------------------------------------------------------------------------------------------------------
>
> Key: YARN-11083
> URL: https://issues.apache.org/jira/browse/YARN-11083
> Project: Hadoop YARN
> Issue Type: Bug
> Components: resourcemanager
> Affects Versions: 3.1.0
> Reporter: tuyu
> Priority: Major
> Fix For: 3.4.0
>
>
> in our cluster: 6k+ node, 600+ queues, when cluster is very busy, the commit fail metric will more then 50+ thousand,so, we To reproduce this case:
> Queue tree:
> {code:java}
> Root max <60G, 100>
> /
> A max <60G, 100>
> / \
> A1 A2
> max<5G,100> max<40,70>
> {code}
>
> Test this situation
> A2 allocate <30GB, 1> then A has <30, 99>
> A1 allocate <10, 1>
> expected behavior is checkHeadRoom will reject this request,because queue max capacity is <5g,100vcore>.
> but getCurrentLimitResource use DominantResourceCalculator resourceCalculator.min will return resouceLimit == <30G,99>. because cpu is max share, that will cause scheduler thread will allocate <10G, 1vcore> success, but the commit thread tryCommit use AbstractCSQueue.accept Resources.fitsIn check memory and vcore and fail the <10G, 1vcore> commit
> Based on this analysis:
> getCurrentLimitResource return
> {code:java}
> return Resources.componentwiseMin(
> Resources.min(resourceCalculator, clusterResource,
> queueMaxResource, currentResourceLimits.getLimit()),
> queueMaxResource);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org