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 739F6189A0 for ; Wed, 27 Jan 2016 08:43:42 +0000 (UTC) Received: (qmail 15801 invoked by uid 500); 27 Jan 2016 08:43:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 15654 invoked by uid 500); 27 Jan 2016 08:43: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 15614 invoked by uid 99); 27 Jan 2016 08:43:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 08:43:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ED6D72C1F6E for ; Wed, 27 Jan 2016 08:43:39 +0000 (UTC) Date: Wed, 27 Jan 2016 08:43:39 +0000 (UTC) From: "tianqi huang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-14477) Compaction improvements: Date tiered compaction policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14477?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] tianqi huang updated HBASE-14477: --------------------------------- Summary: Compaction improvements: Date tiered compaction policy (was: = Compaction improvements: Date tiered compaction policys) > Compaction improvements: Date tiered compaction policy > ------------------------------------------------------ > > Key: HBASE-14477 > URL: https://issues.apache.org/jira/browse/HBASE-14477 > Project: HBase > Issue Type: New Feature > Reporter: Vladimir Rodionov > Assignee: Vladimir Rodionov > Fix For: 2.0.0 > > > For immutable and mostly immutable data the current SizeTiered-based comp= action policy is not efficient.=20 > # There is no need to compact all files into one, because, data is (mostl= y) immutable and we do not need to collect garbage. (performance reason wil= l be discussed later) > # Size-tiered compaction is not suitable for applications where most rece= nt data is most important and prevents efficient caching of this data.=20 > The idea is pretty similar to DateTieredCompaction in Cassandra: > http://www.datastax.com/dev/blog/datetieredcompactionstrategy > http://www.datastax.com/dev/blog/dtcs-notes-from-the-field > From Cassandra own blog: > {quote} > Since DTCS can be used with any table, it is important to know when it is= a good idea, and when it is not. I=E2=80=99ll try to explain the spectrum = and trade-offs here: > 1. Perfect Fit: Time Series Fact Data, Deletes by Default TTL: When you i= ngest fact data that is ordered in time, with no deletes or overwrites. Thi= s is the standard =E2=80=9Ctime series=E2=80=9D use case. > 2. OK Fit: Time-Ordered, with limited updates across whole data set, or o= nly updates to recent data: When you ingest data that is (mostly) ordered i= n time, but revise or delete a very small proportion of the overall data ac= ross the whole timeline. > 3. Not a Good Fit: many partial row updates or deletions over time: When = you need to partially revise or delete fields for rows that you read togeth= er. Also, when you revise or delete rows within clustered reads. > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)