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 6750C200B46 for ; Sat, 16 Jul 2016 21:31:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6611F160A7C; Sat, 16 Jul 2016 19:31:22 +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 B52C3160A52 for ; Sat, 16 Jul 2016 21:31:21 +0200 (CEST) Received: (qmail 39707 invoked by uid 500); 16 Jul 2016 19:31:20 -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 39684 invoked by uid 99); 16 Jul 2016 19:31:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jul 2016 19:31:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7624C2C027F for ; Sat, 16 Jul 2016 19:31:20 +0000 (UTC) Date: Sat, 16 Jul 2016 19:31:20 +0000 (UTC) From: "Carlo Curino (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5323) Policies APIs (for Router and AMRMProxy policies) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 16 Jul 2016 19:31:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380907#comment-15380907 ] Carlo Curino commented on YARN-5323: ------------------------------------ This initial patch presents the APIs for policies (implementations in YARN-5324, YARN-5325). The key philosophy of our design is to: # have a very opaque format in the federation store, so that we can evolve policy freely (likely to happen as we experience with this). To assist with this though, we foresee each {{FederationPolicy}} to implement the {{FederationPolicyWriter}} interface that allows us to control the entire lifecycle of a policy. The envisioned usage is: 1) a {{FederationPolicy}} is instantiated as part of the admin tools, and configure by setting all sort of configs in it (which might change drastically as policies get more sophisticated), 2) the admin tools invoke {{serialize()}} and get a {{FederationPolicyConfiguration}} out of it that is stored in the policy store, 3) on the router/amrmproxy side this is fetched, a FederationPolicy object is instantiated, and via the {{FederationPolicyConfigurator}} apis the {{RouterPolicy}} and {{AMRMProxyFederationPolicy}} are instantiated and initialized. # Note that we actively want to bind together the choice of {{AMRMProxyFederationPolicy}} and {{RouterPolicy}}, which must be coordinated to operate correctly. As such the {{FederationPolicyConfigurator}} is a way to raise the bar for a misconfiguration (one needs to write a class that mistakenly combines to policies, instead of just mistyping a conf). This also allows to do consistency checks among the configurations of the two policies. > Policies APIs (for Router and AMRMProxy policies) > ------------------------------------------------- > > Key: YARN-5323 > URL: https://issues.apache.org/jira/browse/YARN-5323 > Project: Hadoop YARN > Issue Type: Sub-task > Components: nodemanager, resourcemanager > Reporter: Carlo Curino > Assignee: Carlo Curino > Attachments: YARN-5323.01.patch > > > This JIRA tracks APIs for the policies that will guide the Router and AMRMProxy decisions on where to fwd the jobs submission/query requests as well as ResourceRequests. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org