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 DBBF69F1C for ; Wed, 4 Apr 2012 01:14:56 +0000 (UTC) Received: (qmail 13103 invoked by uid 500); 4 Apr 2012 01:14:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 13075 invoked by uid 500); 4 Apr 2012 01:14:54 -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 13064 invoked by uid 99); 4 Apr 2012 01:14:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 01:14:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of leimy2k@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 01:14:48 +0000 Received: by iazz13 with SMTP id z13so470457iaz.31 for ; Tue, 03 Apr 2012 18:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vqotOXu1d0ohKQpbmdBVL3vP+Nhvh9C8MOS1J/1PzOY=; b=Fo0I5Yewz3jrYW1H5zWq6XhH9/rPB9gfyBr6KGGagbP1FVwbbg7ka7W5VwyxEFPm/P jMSWAxfwOjKorfpYqHV+yQZLFoFn/ToMgiNHtuiUfADaMmI2cju6g9Y3ka9KkvUxSQJs WbMC2ertVim2mqZ1+5u6yzkTYFHkdWgSNtBArBxajIaekdqWjTIsfhdt72CE+Dh+4Xua s9r5ytpMDmOWAYodJJdZNoz5Losjd5se6Gp33KE3JVkbSwdSGX8zI5KLm/I5NM36Dj8y hP5OgkTHhEZr/O/k9mZKaBshoGHB+Zld7SBJbhjDrqyQl22e14qLDcKo0hRGOxQzjdmj NrnQ== MIME-Version: 1.0 Received: by 10.50.159.198 with SMTP id xe6mr103220igb.74.1333502067946; Tue, 03 Apr 2012 18:14:27 -0700 (PDT) Received: by 10.42.144.67 with HTTP; Tue, 3 Apr 2012 18:14:27 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Apr 2012 18:14:27 -0700 Message-ID: Subject: Re: System keyspace leak? From: David Leimbach To: user Content-Type: multipart/alternative; boundary=14dae93405a511340604bcd025fd X-Virus-Checked: Checked by ClamAV on apache.org --14dae93405a511340604bcd025fd Content-Type: text/plain; charset=ISO-8859-1 Well I just found this: http://wiki.apache.org/cassandra/LiveSchemaUpdates which explains a ton... It looks like this particular Column Family will grow infinitely (it's just one row with a column per migration), so if I'm pounding on my Cassandra node with CREATE/DROP activity, I'm going to make VERY wide row. That tells me enough to say "don't do that!" :-) Dave On Tue, Apr 3, 2012 at 6:00 PM, David Leimbach wrote: > I've been trying to understand the overhead of create/drop keyspace on > Cassandra 1.0.8. It's not free, especially when I've managed to drive up > the LiveDiskSpaceUsed for the Migrations CF in the "system" keyspace up to > over 12 MB of disk. > > I've tried doing "nodetool -h localhost repair system" and other nodetool > commands to try to compact the SSTables involved with it, but it never > wants to let go of that slowly growing space. > > The Cassandra node in question is in a ring of size 1. > > Other than clobbering my data directory, how do I get my space back? Is > it natural for this to grow seemingly infinitely (even though it's pretty > small increments), or did I find a bug? > > The reason I ask is I need to run unit tests in a shared developer > infrastructure with Cassandra, and we were having a little trouble with > TRUNCATE on column families, but that might have been environmental (I've > not looked deeply into it). > > Which is less expensive? Create/Drop, or Truncate? I don't expect > Truncate to swell the Migration Column Family because it tracks (seemingly) > schema changes. > > Dave > > > --14dae93405a511340604bcd025fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well I just found this:


which explains a ton... =A0It looks lik= e this particular Column Family will grow infinitely (it's just one row= with a column per migration), so if I'm pounding on my Cassandra node = with CREATE/DROP activity, I'm going to make VERY wide row.

That tells me enough to say "don't do that!&qu= ot; =A0:-)

Dave

On Tue, Apr 3, 2012 at 6:00 PM, David Leimbach <= ;leimy2k@gmail.com> wrot= e:
I've been trying to understand the overh= ead of create/drop keyspace on Cassandra 1.0.8. =A0It's not free, espec= ially when I've managed to drive up the LiveDiskSpaceUsed for the Migra= tions CF in the "system" keyspace up to over 12 MB of disk.

I've tried doing "nodetool -h localhost repair syst= em" and other nodetool commands to try to compact the SSTables involve= d with it, but it never wants to let go of that slowly growing space.

The Cassandra node in question is in a ring of size 1.<= /div>

Other than clobbering my data directory, how do I = get my space back? =A0Is it natural for this to grow seemingly infinitely (= even though it's pretty small increments), or did I find a bug?

The reason I ask is I need to run unit tests in a share= d developer infrastructure with Cassandra, and we were having a little trou= ble with TRUNCATE on column families, but that might have been environmenta= l (I've not looked deeply into it).

Which is less expensive? =A0Create/Drop, or Truncate? = =A0I don't expect Truncate to swell the Migration Column Family because= it tracks (seemingly) schema changes.

Dave
<= div>


--14dae93405a511340604bcd025fd--