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 "Arun Suresh (JIRA)" <ji...@apache.org> on 2018/09/27 05:29:00 UTC

[jira] [Comment Edited] (YARN-7746) Fix PlacementProcessor to support app priority

    [ https://issues.apache.org/jira/browse/YARN-7746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16629774#comment-16629774 ] 

Arun Suresh edited comment on YARN-7746 at 9/27/18 5:28 AM:
------------------------------------------------------------

Thanks for the patch [~manirajv06@gmail.com]
Instead of having a separate {{SchedulingRequestEventAsyncThread}}, it should be possible to just replace the default backing queue of the schedulingThreadPool like so:
{code}
this.schedulingThreadPool = new ThreadPoolExecutor(.., priorityQueue, ..);
{code}
You might even consider using the {{org.apache.hadoop.util.BlockingThreadPoolExecutorService}} or add a method to create a priority backed threadpool.


was (Author: asuresh):
Thanks for the patch [~manirajv06@gmail.com]
Instead of having a separate {{SchedulingRequestEventAsyncThread}}, it is possible to just replace the default backing queue of the schedulingThreadPool like so:
{code}
this.schedulingThreadPool = new ThreadPoolExecutor(.., priorityQueue, ..);
{code}
You might even consider using the {{org.apache.hadoop.util.BlockingThreadPoolExecutorService}} or add a method to create a priority backed threadpool.

> Fix PlacementProcessor to support app priority
> ----------------------------------------------
>
>                 Key: YARN-7746
>                 URL: https://issues.apache.org/jira/browse/YARN-7746
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Arun Suresh
>            Assignee: Manikandan R
>            Priority: Major
>         Attachments: YARN-7746.001.patch
>
>
> The Threadpools used in the Processor should be modified to take a priority blocking queue that respects application priority.



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