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 "Wanqiang Ji (JIRA)" <ji...@apache.org> on 2018/11/21 00:06:00 UTC

[jira] [Created] (YARN-9041) Optimize FSPreemptionThread#identifyContainersToPreempt method

Wanqiang Ji created YARN-9041:
---------------------------------

             Summary: Optimize FSPreemptionThread#identifyContainersToPreempt method
                 Key: YARN-9041
                 URL: https://issues.apache.org/jira/browse/YARN-9041
             Project: Hadoop YARN
          Issue Type: Improvement
            Reporter: Wanqiang Ji
            Assignee: Wanqiang Ji


In FSPreemptionThread#identifyContainersToPreempt method, I suggest if AM preemption, and locality relaxation is allowed, then the search space is expanded to all nodes changed to the remaining nodes. The remaining nodes are equal to all nodes minus the potential nodes.

Judging condition changed to:
 # rr.getRelaxLocality()
 # !ResourceRequest.isAnyLocation(rr.getResourceName())
 # bestContainers != null
 # bestContainers.numAMContainers > 0

If I understand the deviation, please criticize me. thx~



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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