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 B9E10200C64 for ; Fri, 28 Apr 2017 14:26:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B886F160BA3; Fri, 28 Apr 2017 12:26:09 +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 0AC6E160B8C for ; Fri, 28 Apr 2017 14:26:08 +0200 (CEST) Received: (qmail 57853 invoked by uid 500); 28 Apr 2017 12:26:08 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 57842 invoked by uid 99); 28 Apr 2017 12:26:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 12:26:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id AAA08C04DE for ; Fri, 28 Apr 2017 12:26:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mc3Kibdw_c_6 for ; Fri, 28 Apr 2017 12:26:06 +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 F214860DF0 for ; Fri, 28 Apr 2017 12:26:05 +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 F1F1EE0D85 for ; Fri, 28 Apr 2017 12:26:04 +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 549BC21DE9 for ; Fri, 28 Apr 2017 12:26:04 +0000 (UTC) Date: Fri, 28 Apr 2017 12:26:04 +0000 (UTC) From: "Josh Elser (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16961) FileSystem Quotas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Apr 2017 12:26:09 -0000 [ https://issues.apache.org/jira/browse/HBASE-16961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15988733#comment-15988733 ] Josh Elser commented on HBASE-16961: ------------------------------------ Sorry, for the delayed reply and thanks for taking a look [~apurtell]. bq. 1. About the optional MasterObserver for automatically deleting quotas when the table is deleted. Why do we not want this in general? Make it a part of core master, optionally disabled? Mostly, this came in later; I think that's why I optionally enabled it. I don't have a good reason that it should be disable by default. bq. 2. Under what circumstances is NO_WRITES_COMPACTIONS advisable instead of NO_WRITES? It comes down to how strict administrators want to be with disk usage. As we move towards a reality where space use is closely tracked, we might also want to avoid temporary spikes in space usage for the compaction's file set (e.g. a compaction of three files, we start out with space use of those three files, but then create a new file which would be similar in size. So, we'd actually have ~2x the space taken, until the original 3 files are removed). bq. 3. How would quotas and system recovery actions interact? Are quota checks bypassed for actions taken by a superuser? I actually haven't spent much time investigating this. I'm not sure if I've added short-circuits for hbase.superusers. Did you have some specific commands in mind WRT "system recovery actions"? I could probably whip up a unit test without much hassle. bq. Yes, this could be a problem, if we are trying to apply quotas to more than one table as part of activity to bring something runaway under control. Not urgent, but let's make sure there's a follow up JIRA for this. Will create and link here. > FileSystem Quotas > ----------------- > > Key: HBASE-16961 > URL: https://issues.apache.org/jira/browse/HBASE-16961 > Project: HBase > Issue Type: New Feature > Reporter: Josh Elser > Assignee: Josh Elser > Attachments: hbase-quota-test.sh > > > Umbrella issue for tracking the filesystem utilization of HBase data, defining quotas on that utilization, and enforcement when utilization exceeds the limits of the quota. > At a high level: we can define quotas on tables and namespaces. Region size is computed by RegionServers and sent to the Master. The Master inspects the sizes of Regions, rolling up to table and namespace sizes. Defined quotas in the quota table are evaluated given the computed sizes, and, for those tables/namespaces violating the quota, RegionServers are informed to take some action to limit any further filesystem growth by that table/namespace. > Discuss: https://lists.apache.org/thread.html/66a4b0c3725b5cbdd61dd6111c43847adaeef7b7da5f4cd045df30ef@%3Cdev.hbase.apache.org%3E > Design Doc: http://home.apache.org/~elserj/hbase/FileSystemQuotasforApacheHBase.pdf or https://docs.google.com/document/d/1VtLWDkB2tpwc_zgCNPE1ulZOeecF-YA2FYSK3TSs_bw/edit?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.15#6346)