Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE90A18735 for ; Tue, 22 Mar 2016 22:50:25 +0000 (UTC) Received: (qmail 66094 invoked by uid 500); 22 Mar 2016 22:50:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 66058 invoked by uid 500); 22 Mar 2016 22:50:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 66002 invoked by uid 99); 22 Mar 2016 22:50:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 22:50:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 737322C1F5C for ; Tue, 22 Mar 2016 22:50:25 +0000 (UTC) Date: Tue, 22 Mar 2016 22:50:25 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11407) Proposal for simplified DTCS 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/CASSANDRA-11407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Jirsa updated CASSANDRA-11407: ----------------------------------- Labels: dtcs (was: ) > Proposal for simplified DTCS > ---------------------------- > > Key: CASSANDRA-11407 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11407 > Project: Cassandra > Issue Type: Improvement > Components: Compaction > Reporter: Anubhav Kale > Labels: dtcs > Attachments: 0001-Simple-DTCS.patch > > > Today's DTCS implementation has been discussed and debated in a few JIRAs already (the notable one is https://issues.apache.org/jira/browse/CASSANDRA-9666). One of the main challenges with the current approach is that it is very difficult to reason about how the "Target" class makes buckets, thus making it difficult to reason about the expected file layout on disk. > I am proposing a simplification to current approach that keeps most of the DTCS properties intact that makes it a great fit for time-series data. The simplification is as follows. > Given the min and max timestamps across all SS Tables in question, start from min and make windows based on base and min_threshold. The logic in GetWindow simply tries to fit maximum sized windows from min to max. > This keeps the DTCS properties intact except that we don't need to wait for min_threshold windows before making a bigger one. I would argue this simplifies the algorithm to a great extent, is easy to reason about and the end result isn't drastically different than the original DTCS in most cases. We give up on the "alignment" logic that exists in current implementation, but I honestly don't think it buys us a lot besides complexity. > The implementation can obviously be optimized and cleaned up more if folks think this is a good idea. -- This message was sent by Atlassian JIRA (v6.3.4#6332)