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 4DB4365E5 for ; Tue, 24 May 2011 16:48:17 +0000 (UTC) Received: (qmail 72714 invoked by uid 500); 24 May 2011 16:48:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 72691 invoked by uid 500); 24 May 2011 16:48:15 -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 72683 invoked by uid 99); 24 May 2011 16:48:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 16:48:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 16:48:10 +0000 Received: by wyb29 with SMTP id 29so5900778wyb.31 for ; Tue, 24 May 2011 09:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=kBRgcPbYI6+yeHWzRgxMXfhRjbCUG2g83sna6fTPQ30=; b=KB/OCXibZy+aWWDJssdne9brCdRf3VMiKk8pZR6tKxCAWdtyvfEjsWyE0AwZ54+NP0 VCXcpk6LY4sT0+CWcPW/BBMCXrHYreSQ+IKJ/BQsV7NopeGflHvBCfAtHVMbM6iGyM4y BeYkDIfDEWDu/S+r8NPMQ9STllQp5tIDjg1Mk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=xisc33/gxuI2gqWTqK6sFElKVctpaLnuUrnNMYXaL8RKnZX6hMsDBRNVE6iURRxLMh hnfq6b/RnZLzRK9H1vtr04zo/Vs5wsHEn3dn8LyxtsHhnMX5TA4YwCirQqgCqs0aKjfs 2GBPotQhxxwDyKVbTyzQnuovFKp8xzVJ5DbBQ= Received: by 10.216.27.67 with SMTP id d45mr3631957wea.21.1306255669096; Tue, 24 May 2011 09:47:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.17.15 with HTTP; Tue, 24 May 2011 09:47:29 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Tue, 24 May 2011 11:47:29 -0500 Message-ID: Subject: Re: issue/minor bug with counters ? To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable "the total amount of traffic that has gone into the Memtable" is how throughput is defined, so this is working as expected. On Tue, May 24, 2011 at 11:15 AM, Yang wrote: > if you have only counter columns in your keyspace, and do a lot of > updates on a few keys, > the getLiveSize() of memtable actually returns the total amount of > traffic that has gone into the Memtable, > not the real size, > so you end up producing very small SStables, with only a few KBytes. > (I have already changed the CF.memtable_throughput memtable_operations > memtable_flush_after params ) > > > > this can be changed easily by modifying the CounterColumn.resolve() so > that it updates the > currentThroughput with the ***difference **** =A0of old column size and > new column size, not just the size of new column. --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com