[ https://issues.apache.org/jira/browse/YARN-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514405#comment-15514405 ]
Wangda Tan commented on YARN-2009: ---------------------------------- Hi [~eepayne], bq. If Queue1 has 100 resources, and if user1 starts app1 at priority 1 that consumes the whole queue, won't user1's user-limit-resource be 100? Then, if user1 starts another app (app2) at priority 2, won't the above algorithm skip over app2 because user1 has already achieved its user-limit-resource? For your concern, I previously mentioned in the pseudo code: {code} // initial all value to 0 Map<String, Resource> user-to-allocated; {code} Initially user-to-allocated is set to 0, and when we loop applications, we will go to app2 first, so app2's ideal-allocation becomes 100 and app1's ideal-allocation will be updated to 0. (Assume app2 has >= 100 pending resource). Plz let me know if I missed anything. Thanks, > Priority support for preemption in ProportionalCapacityPreemptionPolicy > ----------------------------------------------------------------------- > > Key: YARN-2009 > URL: https://issues.apache.org/jira/browse/YARN-2009 > Project: Hadoop YARN > Issue Type: Sub-task > Components: capacityscheduler > Reporter: Devaraj K > Assignee: Sunil G > Attachments: YARN-2009.0001.patch, YARN-2009.0002.patch > > > While preempting containers based on the queue ideal assignment, we may need > to consider preempting the low priority application containers first. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org