[ https://issues.apache.org/jira/browse/YARN-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995184#comment-15995184 ]
Eric Payne commented on YARN-2113: ---------------------------------- [~sunilg], would you mind, please, explaining why the check for {{usedMinusOneContainer > userLimit}} is necessary? If this code will skip if {{(used - currentContainer) > userLimit}}, why is it also necessary to check {{usedMinusOneContainer > userLimit}}? Won't that check happen when the youngest container _is_ the current container? {code:title=FifoIntraQueuePreemptionPlugin#skipContainerBasedOnIntraQueuePolicy} return Resources.lessThanOrEqual(rc, clusterResource, Resources.subtract(usedResource, c.getAllocatedResource()), userLimit) && Resources.greaterThan(rc, clusterResource, usedMinusOneContainer, userLimit) && context.getIntraQueuePreemptionOrder() .equals(IntraQueuePreemptionOrder.USERLIMIT_FIRST); } {code} > Add cross-user preemption within CapacityScheduler's leaf-queue > --------------------------------------------------------------- > > Key: YARN-2113 > URL: https://issues.apache.org/jira/browse/YARN-2113 > Project: Hadoop YARN > Issue Type: Sub-task > Components: scheduler > Reporter: Vinod Kumar Vavilapalli > Assignee: Sunil G > Attachments: IntraQueue Preemption-Impact Analysis.pdf, > TestNoIntraQueuePreemptionIfBelowUserLimitAndDifferentPrioritiesWithExtraUsers.txt, > YARN-2113.0001.patch, YARN-2113.0002.patch, YARN-2113.0003.patch, > YARN-2113.0004.patch, YARN-2113.0005.patch, YARN-2113.0006.patch, > YARN-2113.0007.patch, YARN-2113.0008.patch, YARN-2113.0009.patch, > YARN-2113.0010.patch, YARN-2113.0011.patch, YARN-2113.0012.patch, > YARN-2113.0013.patch, YARN-2113.apply.onto.0012.ericp.patch, > YARN-2113.v0.patch > > > Preemption today only works across queues and moves around resources across > queues per demand and usage. We should also have user-level preemption within > a queue, to balance capacity across users in a predictable manner. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org