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 B3F211756D for ; Thu, 5 Mar 2015 00:34:54 +0000 (UTC) Received: (qmail 16580 invoked by uid 500); 5 Mar 2015 00:34:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 16490 invoked by uid 500); 5 Mar 2015 00:34:38 -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 16248 invoked by uid 99); 5 Mar 2015 00:34:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 00:34:38 +0000 Date: Thu, 5 Mar 2015 00:34:38 +0000 (UTC) From: "Takenori Sato (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8866) PartitionedCompactionStrategy 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-8866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Takenori Sato updated CASSANDRA-8866: ------------------------------------- Attachment: cassandra-2.0-8866.txt confirmed it works as expected both on a single node and multi nodes env. Only two partitioners, Murmur3Partitioners and RandomPartitioners, are tested. > PartitionedCompactionStrategy > ----------------------------- > > Key: CASSANDRA-8866 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8866 > Project: Cassandra > Issue Type: New Feature > Reporter: Takenori Sato > Attachments: cassandra-2.0-8866.txt > > > PartitionedCompactionStrategy is a new compaction strategy with the following goals in mind: > * Column tombstone removal effectiveness > * Read performance > As the name suggests, PartitionedCompactionStrategy actively splits un-partitioned sstables(newly flushed, imported, compaction strategy switch) into partitions by IPartitioner. The number of nodes will be configurable. > Then, PartitionedCompactionStrategy finds an interesting partition at compaction based on the followings: > - the number of sstables > - the ratio of droppable tombstones > - read hotness > You may think this design looks similar to SizeTieredCompactionStrategy and LeveledCompactionStrategy, but the big difference is that a compaction by PartitionedCompactionStrategy is based on rows(a partitions). And this allows more effective column tombstone removal, and better read performance. > Also note that this will not require any changes to the other components. So this is expected to be a purely pluggable compaction strategy. > A possible implementation of _PertitionedCompactionStrategy#getNextBackgroundTask()_ is as follows: > # find un-partitioned sstables > # split un-partitioned sstables into partitiones > # group all the sstables into partitions > # find an interesting partition > #* the number of sstables > #* the number of droppable tombstones > #* hotness > # create a compaction task for the interesting bucket if found -- This message was sent by Atlassian JIRA (v6.3.4#6332)