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 "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/09/07 16:53:20 UTC

[jira] [Commented] (YARN-5605) Preempt containers (all on one node) to meet the requirement of starved applications

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

ASF GitHub Bot commented on YARN-5605:
--------------------------------------

Github user templedf commented on a diff in the pull request:

    https://github.com/apache/hadoop/pull/124#discussion_r77861935
  
    --- Diff: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/AppSchedulingInfo.java ---
    @@ -535,6 +535,23 @@ public synchronized Resource getResource(SchedulerRequestKey schedulerKey) {
       }
     
       /**
    +   * Method to return the next resource request to be serviced.
    +   *
    +   * In the initial implementation, we just pick any {@link ResourceRequest}
    +   * corresponding to the highest priority.
    +   *
    +   * @return next {@link ResourceRequest} to allocate resources for.
    +   */
    +  @Unstable
    +  public synchronized ResourceRequest getNextResourceRequest() {
    +    for (ResourceRequest rr:
    +        resourceRequestMap.get(schedulerKeys.first()).values()) {
    +      return rr;
    --- End diff --
    
    Can we please have one exit point?


> Preempt containers (all on one node) to meet the requirement of starved applications
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-5605
>                 URL: https://issues.apache.org/jira/browse/YARN-5605
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: fairscheduler
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: yarn-5605-1.patch
>
>
> Required items:
> # Identify starved applications
> # Identify a node that has enough containers from applications over their fairshare.
> # Preempt those containers



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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