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 29540200C59 for ; Mon, 17 Apr 2017 23:58:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28097160B92; Mon, 17 Apr 2017 21:58:46 +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 79AA5160BAE for ; Mon, 17 Apr 2017 23:58:45 +0200 (CEST) Received: (qmail 75431 invoked by uid 500); 17 Apr 2017 21:58:44 -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 75176 invoked by uid 99); 17 Apr 2017 21:58:44 -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; Mon, 17 Apr 2017 21:58:44 +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 0B57618FCF3 for ; Mon, 17 Apr 2017 21:58:44 +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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xkvlJLCYfHoD for ; Mon, 17 Apr 2017 21:58:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8B8BC5F36B for ; Mon, 17 Apr 2017 21:58:42 +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 29EC2E0A31 for ; Mon, 17 Apr 2017 21:58:42 +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 D5EC021B46 for ; Mon, 17 Apr 2017 21:58:41 +0000 (UTC) Date: Mon, 17 Apr 2017 21:58:41 +0000 (UTC) From: "Chris Douglas (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6451) Create a monitor to check whether we maintain RM (scheduling) invariants MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Apr 2017 21:58:46 -0000 [ https://issues.apache.org/jira/browse/YARN-6451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971709#comment-15971709 ] Chris Douglas commented on YARN-6451: ------------------------------------- bq. when invariants are violated the log line is harder to read if combined, but perf is much better. In the current example of invariants.txt I will leave this with one invariant per line, so slower but easier to understand---works? This could evaluate the combined expression, and only if it detects some violation, iterate over the set of expressions to print specific error messages. Though shaving fractions of a millisecond off the validation check is probably not significant. +1 overall. For future versions: * The invariant checker might want to use bindings across contexts; this would be hard to express as subtypes of {{InvariantsChecker}}. For example, if one wanted to check some invariant using values from the scheduler and the metrics, there isn't a good way to compose the two with inheritance. That said, in the current RM it's hard to correlate values collected from multiple components without reasoning about their mutual consistency in a brittle, ad hoc way. How invariants are loaded and how errors are handled could also be abstracted, but (IMHO) that'd be premature. This is approachable as-is. * The unit test is kind of light * This could print a warning when it starts up, since it's mostly for testing. If it's accidentally deployed in a production setting, it should show up in the log. The RM refuses to start if {{invariants.txt}} is missing? > Create a monitor to check whether we maintain RM (scheduling) invariants > ------------------------------------------------------------------------ > > Key: YARN-6451 > URL: https://issues.apache.org/jira/browse/YARN-6451 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Carlo Curino > Assignee: Carlo Curino > Attachments: YARN-6451.v0.patch, YARN-6451.v1.patch, YARN-6451.v2.patch, YARN-6451.v3.patch > > > For SLS runs, as well as for live test clusters (and maybe prod), it would be useful to have a mechanism to continuously check whether core invariants of the RM/Scheduler are respected (e.g., no priority inversions, fairness mostly respected, certain latencies within expected range, etc..) -- 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