hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Ryza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1498) Common scheduler changes for moving apps between queues
Date Thu, 30 Jan 2014 21:10:10 GMT

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

Sandy Ryza commented on YARN-1498:

bq. AppSchedulingInfo: Not sure I understand the relevance of the following change to this
JIRA. Am I missing something or is it just cleanup?
This isn't required, but I thought it made the code clearer, as we're adding to the places
that incrPendingResources and decrPendingResources get called. AppSchedulingInfo#move is confusing
already, and I wanted to avoid having a monstrosity like
-        metrics.incrPendingResources(user, request.getNumContainers()
-            - lastRequestContainers, Resources.subtractFrom( // save a clone
-            Resources.multiply(request.getCapability(), request
-                .getNumContainers()), Resources.multiply(lastRequestCapability,
-                lastRequestContainers)));
in it.  Can revert it if you think it's not worth it.

bq. Can we throw an Exception instead of returning null.
I copied this from the Capacity Scheduler, so would rather keep it consistent.

> Common scheduler changes for moving apps between queues
> -------------------------------------------------------
>                 Key: YARN-1498
>                 URL: https://issues.apache.org/jira/browse/YARN-1498
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.2.0
>            Reporter: Sandy Ryza
>            Assignee: Sandy Ryza
>         Attachments: YARN-1498-1.patch, YARN-1498.patch, YARN-1498.patch
> This JIRA is to track changes that aren't in particular schedulers but that help them
support moving apps between queues.  In particular, it makes sure that QueueMetrics are properly
updated when an app changes queue.

This message was sent by Atlassian JIRA

View raw message