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 5B3D7200C06 for ; Fri, 27 Jan 2017 22:03:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 59D36160B60; Fri, 27 Jan 2017 21:03:31 +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 A2A25160B40 for ; Fri, 27 Jan 2017 22:03:30 +0100 (CET) Received: (qmail 6173 invoked by uid 500); 27 Jan 2017 21:03:29 -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 6161 invoked by uid 99); 27 Jan 2017 21:03:29 -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, 27 Jan 2017 21:03:29 +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 4AE4AC9D5B for ; Fri, 27 Jan 2017 21:03:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id odmSCVKuzab8 for ; Fri, 27 Jan 2017 21:03:28 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 480115FBD1 for ; Fri, 27 Jan 2017 21:03:28 +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 7F71CE04A6 for ; Fri, 27 Jan 2017 21:03:25 +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 CB2E92529B for ; Fri, 27 Jan 2017 21:03:24 +0000 (UTC) Date: Fri, 27 Jan 2017 21:03:24 +0000 (UTC) From: "Vladimir Rodionov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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 archived-at: Fri, 27 Jan 2017 21:03:31 -0000 [ https://issues.apache.org/jira/browse/HBASE-14477?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Rodionov resolved HBASE-14477. --------------------------------------- Resolution: Duplicate Duplicate of HBASE-15181 > 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)