Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 607E4200C78 for ; Thu, 18 May 2017 20:27:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5F19E160BB5; Thu, 18 May 2017 18:27:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A6100160B9D for ; Thu, 18 May 2017 20:27:08 +0200 (CEST) Received: (qmail 14570 invoked by uid 500); 18 May 2017 18:27:07 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 14559 invoked by uid 99); 18 May 2017 18:27:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2017 18:27:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 763FDC061B for ; Thu, 18 May 2017 18:27:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id sWWfGx0NpryG for ; Thu, 18 May 2017 18:27:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E61615FD9C for ; Thu, 18 May 2017 18:27:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 181ABE01A8 for ; Thu, 18 May 2017 18:27:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 446B521B5D for ; Thu, 18 May 2017 18:27:04 +0000 (UTC) Date: Thu, 18 May 2017 18:27:04 +0000 (UTC) From: "Panagiotis Garefalakis (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6593) [API] Introduce Placement Constraint object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 May 2017 18:27:09 -0000 [ https://issues.apache.org/jira/browse/YARN-6593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016212#comment-16016212 ] Panagiotis Garefalakis commented on YARN-6593: ---------------------------------------------- [~kkaranasos] thanks for the patch! The discussion totally makes sense to me. Some comments: * Totally agree on using a more object oriented way of representing both PlacementConstraint -> CompoundPlacementConstraint/SimplePlacementConstraint and SimplePlacementConstraint -> TargetConstraint/CardinalityConstraint. I think the main value for doing so is usability. * Protobuf extentions might also be something we could use. For example: {code:java} message TargetConstraintProto { extend SimplePlacementConstraintProto { required TargetConstraintProto costraint = 10; // Unique extension number } } message CardinalityConstraintProto { extend SimplePlacementConstraintProto { required CardinalityConstraintProto costraint = 11; // Unique extension number } } {code} * We will definitely need a validator implementation - also as a way to ensure users type constraints that do make sense * I am also wondering if IN_ANY should be a separate **TargetOperator** - in a case like C5 design-doc example we would avoid using any TargetValues Panagiotis > [API] Introduce Placement Constraint object > ------------------------------------------- > > Key: YARN-6593 > URL: https://issues.apache.org/jira/browse/YARN-6593 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Konstantinos Karanasos > Assignee: Konstantinos Karanasos > Attachments: YARN-6593.001.patch > > > This JIRA introduces an object for defining placement constraints. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org