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 4B721200CD2 for ; Thu, 13 Jul 2017 01:44:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49BFA16A2AA; Wed, 12 Jul 2017 23:44:32 +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 9238D16A2A2 for ; Thu, 13 Jul 2017 01:44:31 +0200 (CEST) Received: (qmail 6395 invoked by uid 500); 12 Jul 2017 23:44:30 -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 6343 invoked by uid 99); 12 Jul 2017 23:44:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 23:44:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6EB2D196259 for ; Wed, 12 Jul 2017 23:44:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PaV0btRVKoNr for ; Wed, 12 Jul 2017 23:44:28 +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 25CC962778 for ; Wed, 12 Jul 2017 23:26:01 +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 725DAE070C for ; Wed, 12 Jul 2017 23:26:00 +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 2BE5F24720 for ; Wed, 12 Jul 2017 23:26:00 +0000 (UTC) Date: Wed, 12 Jul 2017 23:26:00 +0000 (UTC) From: "Carlo Curino (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5412) Create a proxy chain for ResourceManager REST API in the Router MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Jul 2017 23:44:32 -0000 [ https://issues.apache.org/jira/browse/YARN-5412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084900#comment-16084900 ] Carlo Curino commented on YARN-5412: ------------------------------------ [~giovanni.fumarola], per our offline discussion: You can probably fix the tests issues by: # add a {{capacity-scheduler.xml}} to test/resources, # fix the {{yarn-default.xml}} (mistakenly setting rm.webaddress instead of router.webaddress), # add timeouts to the tests, so it timeouts locally and invokes shutdown, avoiding other tests to fail due to binding issues (more local errors help) Also completing a first pass on the review: # {{TestRouterWebServices}} remove LOG.info that are redundant to asserts # {{TestRouterWebServicesREST}} factor out code in setup to a {{isWebAppRunning}} generic method (with a path in input) # {{TestRouterWebServicesREST}} factor out all the invocations to something like {{private List performTest(Path, T.class)}}, the return list allows you to add specific size checks outside where appropriate. > Create a proxy chain for ResourceManager REST API in the Router > --------------------------------------------------------------- > > Key: YARN-5412 > URL: https://issues.apache.org/jira/browse/YARN-5412 > Project: Hadoop YARN > Issue Type: Sub-task > Components: nodemanager, resourcemanager > Reporter: Subru Krishnan > Assignee: Giovanni Matteo Fumarola > Attachments: YARN-5412-YARN-2915.1.patch, YARN-5412-YARN-2915.2.patch, YARN-5412-YARN-2915.proto.patch > > > As detailed in the proposal in the umbrella JIRA, we are introducing a new component that routes client request to appropriate ResourceManager(s). This JIRA tracks the creation of a proxy for ResourceManager REST API in the Router. This provides a placeholder for: > 1) throttling mis-behaving clients (YARN-1546) > 3) mask the access to multiple RMs (YARN-3659) > We are planning to follow the interceptor pattern like we did in YARN-2884 to generalize the approach and have only dynamically coupling for Federation. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org