Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 616CA1877A for ; Sat, 21 Nov 2015 18:41:11 +0000 (UTC) Received: (qmail 67599 invoked by uid 500); 21 Nov 2015 18:41:11 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 67553 invoked by uid 500); 21 Nov 2015 18:41:11 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 67530 invoked by uid 99); 21 Nov 2015 18:41:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2015 18:41:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0EB1E2C1F5E for ; Sat, 21 Nov 2015 18:41:11 +0000 (UTC) Date: Sat, 21 Nov 2015 18:41:11 +0000 (UTC) From: "Arun Suresh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4358) Improve relationship between SharingPolicy and ReservationAgent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-4358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020611#comment-15020611 ] Arun Suresh commented on YARN-4358: ----------------------------------- Thanks for the patch [~curino]. The patch looks good generally. Few minor nits: # minor formatting issue in testSharingPolicyFeedback (line 190) # remove instances of SubtractionIsNegative. Also, in CapacityOverTimePolicy::availableResources, as well as InMemoryPlan::getAvailableResources. you can completely remove the try catch. # It would be nice if we could probably generalize RLESparceAllocation, currently it is being used to count user reservations etc. We can probably circle back to this after YARN-3926 # in InMemoryReservationAllocation::compareTo, you can probably collapse both the if statements to : {{return other.getReservationId().getId() - this.getReservationId().getId()}} # maybe rename *getReservationCountForUser* to *getReservationCountForUserAtTime* > Improve relationship between SharingPolicy and ReservationAgent > --------------------------------------------------------------- > > Key: YARN-4358 > URL: https://issues.apache.org/jira/browse/YARN-4358 > Project: Hadoop YARN > Issue Type: Sub-task > Components: capacityscheduler, fairscheduler, resourcemanager > Reporter: Carlo Curino > Assignee: Carlo Curino > Fix For: 2.8.0 > > Attachments: YARN-4358.patch > > > At the moment an agent places based on available resources, but has no visibility to extra constraints imposed by the SharingPolicy. While not all constraints are easily represented some (e.g., max-instantaneous resources) are easily represented. -- This message was sent by Atlassian JIRA (v6.3.4#6332)