[
https://issues.apache.org/jira/browse/YARN-12050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shilun Fan resolved YARN-12050.
-------------------------------
Fix Version/s: 3.5.1
3.6.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Avoid copying all nodes during multi-node asynchronous scheduling
> -----------------------------------------------------------------
>
> Key: YARN-12050
> URL: https://issues.apache.org/jira/browse/YARN-12050
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: resourcemanager
> Reporter: Yuan Luo
> Assignee: Yuan Luo
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.1, 3.6.0
>
>
> h2. Problem
> * With asynchronous scheduling and multi-node placement enabled,
> {{CapacityScheduler.schedule()}} copies every node through
> {{ClusterNodeTracker.getAllNodes()}} just to check whether the cluster is
> empty.
> * The copied list is not used by partition-based scheduling. It adds an O(N)
> list copy and allocation while holding the node-tracker read lock on every
> scheduling pass.
> h2. Solution
> * Use {{ClusterNodeTracker.nodeCount()}} for the empty-cluster check in
> multi-node placement mode.
> * Obtain the full node snapshot only in single-node placement mode and retain
> its snapshot-based size and randomized traversal.
> * Add regression coverage for empty clusters and multi-node scheduling
> without a full node snapshot.
> h2. Validation
> * JDK 17.0.8, Maven Wrapper 3.9.15: reactor compilation passed.
> * {{TestCapacitySchedulerAsyncScheduling}}: 18 tests, 0 failures, 0 errors, 0
> skipped.
> * With the original production code, the 3 new regression cases produced 2
> expected failures, 0 errors, and 0 skipped.
> * Fresh Surefire XML, {{git diff --check}}, and {{git diff --cached --check}}
> verified.
> h2. Related PR
> [PR #8896|https://github.com/apache/hadoop/pull/8896]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]