[
https://issues.apache.org/jira/browse/YARN-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13794602#comment-13794602
]
Alejandro Abdelnur commented on YARN-1290:
------------------------------------------
[~ywskycn], approach looks good, I'd suggest the following change though.
Instead creating an anonymous comparator instance on every run, define the
comparator as a private static inner class and have an instance variable with
it. By doing that we don't have to create a new instance on every loop run.
> Let continuous scheduling achieve more balanced task assignment
> ---------------------------------------------------------------
>
> Key: YARN-1290
> URL: https://issues.apache.org/jira/browse/YARN-1290
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Wei Yan
> Assignee: Wei Yan
> Attachments: main.pdf, YARN-1290.patch
>
>
> Currently, in continuous scheduling (YARN-1010), in each round, the thread
> iterates over pre-ordered nodes and assigns tasks. This mechanism may
> overload the first several nodes, while the latter nodes have no tasks.
> We should sort all nodes according to available resource. In each round,
> always assign tasks to nodes with larger capacity, which can balance the load
> distribution among all nodes.
--
This message was sent by Atlassian JIRA
(v6.1#6144)