Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E5A61885A for ; Mon, 1 Feb 2016 22:01:40 +0000 (UTC) Received: (qmail 84368 invoked by uid 500); 1 Feb 2016 22:01:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 84323 invoked by uid 500); 1 Feb 2016 22:01:40 -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 84306 invoked by uid 99); 1 Feb 2016 22:01:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 22:01:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C7E4E2C14F7 for ; Mon, 1 Feb 2016 22:01:39 +0000 (UTC) Date: Mon, 1 Feb 2016 22:01:39 +0000 (UTC) From: "Vladimir Rodionov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15181) A simple implementation of date based tiered compaction 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/HBASE-15181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127134#comment-15127134 ] Vladimir Rodionov commented on HBASE-15181: ------------------------------------------- The original idea of DateTieredCompactionPolicy (as in HBASE-14477) was to improve read of most recent data and to reduce overall compaction-related IO. The proposed simple implementation will meet these requirements only for applications w/o periodic data bulk loading and for mostly in-order data streams (that is probably use case at Yahoo?) Periodic data bulk loading and significant out -of -order data streams reduces the value of this implementation significantly. Before we can move on with TCP/DTCP we should figure out how to solve these problems, may be in a separate JIRA, as since handling bulk loaded data is not TCP - specific but generic approach. Two questions: # Why is bulk loaded data excluded from minor compaction # Why we can not select non-contiguous range of store files for compaction? > A simple implementation of date based tiered compaction > ------------------------------------------------------- > > Key: HBASE-15181 > URL: https://issues.apache.org/jira/browse/HBASE-15181 > Project: HBase > Issue Type: New Feature > Components: Compaction > Reporter: Clara Xiong > Assignee: Clara Xiong > Fix For: 2.0.0 > > Attachments: HBASE-15181-v1.patch, HBASE-15181-v2.patch > > > This is a simple implementation of date-based tiered compaction similar to Cassandra's for the following benefits: > 1. Improve date-range-based scan by structuring store files in date-based tiered layout. > 2. Reduce compaction overhead. > 3. Improve TTL efficiency. > Perfect fit for the use cases that: > 1. has mostly date-based date write and scan and a focus on the most recent data. > 2. never or rarely deletes data. > Out-of-order writes are handled gracefully so the data will still get to the right store file for time-range-scan and re-compacton with existing store file in the same time window is handled by ExploringCompactionPolicy. > Time range overlapping among store files is tolerated and the performance impact is minimized. > Configuration can be set at hbase-site or overriden at per-table or per-column-famly level by hbase shell. > Design spec is at https://docs.google.com/document/d/1_AmlNb2N8Us1xICsTeGDLKIqL6T-oHoRLZ323MG_uy8/edit?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332)