Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0903810442 for ; Mon, 18 Nov 2013 16:05:24 +0000 (UTC) Received: (qmail 32831 invoked by uid 500); 18 Nov 2013 16:05:22 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 32699 invoked by uid 500); 18 Nov 2013 16:05:21 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 32650 invoked by uid 99); 18 Nov 2013 16:05:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Nov 2013 16:05:20 +0000 Date: Mon, 18 Nov 2013 16:05:20 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-3793) Do not store disks_info in DB. Store it as dynamic info in memory that can be used to show on the UI. 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/AMBARI-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825422#comment-13825422 ] Dmitry Lysnichenko commented on AMBARI-3793: -------------------------------------------- +1 > Do not store disks_info in DB. Store it as dynamic info in memory that can be used to show on the UI. > ----------------------------------------------------------------------------------------------------- > > Key: AMBARI-3793 > URL: https://issues.apache.org/jira/browse/AMBARI-3793 > Project: Ambari > Issue Type: Bug > Components: agent > Affects Versions: 1.4.1 > Reporter: Vitaly Brodetskyi > Assignee: Vitaly Brodetskyi > Fix For: 1.5.0 > > Attachments: AMBARI-3793.patch > > > Currently, we store disks info in DB and this information is never updated after registration. As disks details can change (space availability changes, disks get mounted/unmounted, etc.) the persisted information is not useful. > We should instead hold the details in memory and refresh it at certain intervals (e.g. once every 10 minutes) and then alert if space availability hits some lower limit. -- This message was sent by Atlassian JIRA (v6.1#6144)