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 5211C183D5 for ; Wed, 13 May 2015 05:28:05 +0000 (UTC) Received: (qmail 35175 invoked by uid 500); 13 May 2015 05:28:00 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 35127 invoked by uid 500); 13 May 2015 05:28:00 -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 35115 invoked by uid 99); 13 May 2015 05:28:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 05:28:00 +0000 Date: Wed, 13 May 2015 05:28:00 +0000 (UTC) From: "zhihai xu (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-3628) ContainerMetrics should support always-flush mode. 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-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated YARN-3628: ---------------------------- Attachment: (was: YARN-3628.000.patch) > ContainerMetrics should support always-flush mode. > -------------------------------------------------- > > Key: YARN-3628 > URL: https://issues.apache.org/jira/browse/YARN-3628 > Project: Hadoop YARN > Issue Type: Bug > Reporter: zhihai xu > Assignee: zhihai xu > Attachments: YARN-3628.000.patch > > > ContainerMetrics should support always-flush mode. > It will be good to set ContainerMetrics as always-flush mode if yarn.nodemanager.container-metrics.period-ms is configured as 0. > Currently both 0 and -1 mean flush on completion. > Also the current default value for yarn.nodemanager.container-metrics.period-ms is -1 and the default value for yarn.nodemanager.container-metrics.enable is true. So the empty content is shown for the active container metrics until it is finished. > The default value for yarn.nodemanager.container-metrics.period-ms should not be -1. > flushOnPeriod is always false if flushPeriodMs is -1, > the content will only be shown when the container is finished. > {code} > if (finished || flushOnPeriod) { > registry.snapshot(collector.addRecord(registry.info()), all); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)