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 A07DD200C06 for ; Fri, 27 Jan 2017 22:03:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9F100160B60; Fri, 27 Jan 2017 21:03:35 +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 E9C30160B5B for ; Fri, 27 Jan 2017 22:03:34 +0100 (CET) Received: (qmail 9099 invoked by uid 500); 27 Jan 2017 21:03:31 -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 8930 invoked by uid 99); 27 Jan 2017 21:03:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2017 21:03:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D555A1A0416 for ; Fri, 27 Jan 2017 21:03:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AbqA5V3cuz-x for ; Fri, 27 Jan 2017 21:03:30 +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 9A9F660DE7 for ; Fri, 27 Jan 2017 21:03:29 +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 315AEE0596 for ; Fri, 27 Jan 2017 21:03:26 +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 316B7252B4 for ; Fri, 27 Jan 2017 21:03:25 +0000 (UTC) Date: Fri, 27 Jan 2017 21:03:25 +0000 (UTC) From: "Vladimir Rodionov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (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:35 -0000 [ https://issues.apache.org/jira/browse/HBASE-14477?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D158= 43489#comment-15843489 ]=20 Vladimir Rodionov edited comment on HBASE-14477 at 1/27/17 9:03 PM: -------------------------------------------------------------------- Sure, [~enis]. Duplicate of HBASE-15181 was (Author: vrodionov): 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)