Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B26D773D for ; Thu, 11 Aug 2011 04:08:03 +0000 (UTC) Received: (qmail 83634 invoked by uid 500); 11 Aug 2011 04:08:00 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83216 invoked by uid 500); 11 Aug 2011 04:07:49 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 83182 invoked by uid 99); 11 Aug 2011 04:07:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 04:07:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a59.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 04:07:41 +0000 Received: from homiemail-a59.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a59.g.dreamhost.com (Postfix) with ESMTP id 2CA40564058 for ; Wed, 10 Aug 2011 21:07:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= thelastpickle.com; b=lB+S/L4vd33bYThUzNsjXSpKmrfQAsqlEcQBZDwyHap 0u9+KGTGgrsJFTlaliKqHldCEGIveiGVf/URnHCKPbJ0ZXX1FDKHOs1xQ6mX3OYa bNmDD6N9W1uSuRt8ji37HBk0hLRFmfZwFO73tNZKG/fOuh/CV2oRzdl7Md+4HwHo = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=//MYmsAZwUblZZiIA14eesBf7iY=; b=LcEDhCuyDf igZRCI07DQ+Kz6izhptTslIl2O92J+yPBiMIzdoueo4Nfkg0BlrfAbTHk5iF6+bH 9LGQwn5t8J9z6PpPOT55MIx4uld2uRiyBDmiZPNVFxUZlgdqPqYEJKBruFB8QndK SDQ+ceDP42MyNTTdkrsUVmbfZA6fLmo2Y= Received: from 202-126-206-202.vectorcommunications.net.nz (unknown [202.126.206.202]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a59.g.dreamhost.com (Postfix) with ESMTPSA id A2D44564057 for ; Wed, 10 Aug 2011 21:07:17 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: Tuning a column family for archival From: aaron morton In-Reply-To: Date: Thu, 11 Aug 2011 16:07:14 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: <17576A61-7748-46E8-8DDE-2F52B7EC2C8E@thelastpickle.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1244.3) There's not much to do other than turn off the caches (which you have = done) and leave it alone.=20 If you want to poke around perhaps look at the compaction settings (from = CLI help): - max_compaction_threshold: The maximum number of SSTables allowed = before a minor compaction is forced. Default is 32, setting to 0 disables minor compactions. Decreasing this will cause minor compactions to start more frequently = and be less intensive. The min_compaction_threshold and = max_compaction_threshold boundaries are the number of tables Cassandra attempts to merge together = at once. - min_compaction_threshold: The minimum number of SSTables needed to start a minor compaction. Default is 4, setting to 0 disables minor compactions. Increasing this will cause minor compactions to start less frequently = and be more intensive. The min_compaction_threshold and = max_compaction_threshold boundaries are the number of tables Cassandra attempts to merge together = at once.=20 You *could* disable compaction and then manually compact at the best = time. If you are not doing many updates I'd wait and see.=20 You could repair different CF's at different times. This would help with = reducing the amount of data that is used to build the Merkle tree's, but = there is a bug about streaming the differences that means extra data is = streamed (can't remember the bug number now) I'd wait to see if there is an issue first.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 11 Aug 2011, at 13:18, Jason Baker wrote: > I have a column family that I'm using to archive records. They're = mostly kept around for historical purposes. Aside from that, they're = mostly considered deleted. It's probably going to be very rare that = anyone reads from this table *ever*. I don't really even write to it = that much. =20 >=20 > Does anyone have advice for me as far as how (or if) I should tune = this table with that in mind? My concern is less speeding up access to = this table than it is making sure that it doesn't impact the performance = of any other column families in any way. >=20 > Here's the data from nodetool cfstat (although this table was just = created a few days ago): >=20 > Column Family: ArchivedLinks > SSTable count: 1 > Space used (live): 29580801 > Space used (total): 97838786 > Number of Keys (estimate): 93184 > Memtable Columns Count: 7497 > Memtable Data Size: 3223587 > Memtable Switch Count: 11 > Read Count: 0 > Read Latency: NaN ms. > Write Count: 139091 > Write Latency: 0.007 ms. > Pending Tasks: 0 > Key cache: disabled > Row cache: disabled > Compacted row minimum size: 259 > Compacted row maximum size: 372 > Compacted row mean size: 311