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 169369C85 for ; Thu, 29 Sep 2011 18:11:24 +0000 (UTC) Received: (qmail 73947 invoked by uid 500); 29 Sep 2011 18:11:22 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 73916 invoked by uid 500); 29 Sep 2011 18:11:21 -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 73908 invoked by uid 99); 29 Sep 2011 18:11:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 18:11:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 18:11:16 +0000 Received: by eye4 with SMTP id 4so745013eye.31 for ; Thu, 29 Sep 2011 11:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=k6iIVrP/1zGH6F5MAewutamHRtaw0PRK7wDa4LYbIBg=; b=H3p8AZUA4bV7UYGExfAKprsdvwjPZM/OXbCUJoSLlTwzCn4jO4EgNUZzT55DLSMKnf 9AAEbyMEdqkPZlnOe7HJyXds4Pn4OhY+gcgsiRThTAkiyLnsT+IvzJDAiU5p9q9mMmAP 62IETcvIh5zEtDzwwZpq1E8HvyVMyuMk3EIMM= Received: by 10.213.105.73 with SMTP id s9mr2179014ebo.25.1317319854131; Thu, 29 Sep 2011 11:10:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.16.193 with HTTP; Thu, 29 Sep 2011 11:10:34 -0700 (PDT) In-Reply-To: References: <1317293261.75172.YahooMailNeo@web95306.mail.in2.yahoo.com> From: Jonathan Ellis Date: Thu, 29 Sep 2011 13:10:34 -0500 Message-ID: Subject: Re: nodetools cfstats question To: user@cassandra.apache.org Cc: Thamizh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yes, because the cache is not full so there is no pressure to remove old entries. On Thu, Sep 29, 2011 at 11:52 AM, Sanjeev Kulkarni wrote: > Hi Thamizh, > Thanks for the answer. > I understand the part about the Key cache capacity being 200000 which is = the > default value. > But Key cache size being 99k? Does this represent that cassandra has > allocated 99k for key cache even though the actual keys are far less? > > On Thu, Sep 29, 2011 at 3:47 AM, Thamizh wrote: >> >> please check [default@unknown] help create column family; >> These are default values,=A0 until you explicitly mentioned on CF creati= on. >> >> Regards, >> Thamizhannal >> ________________________________ >> From: Sanjeev Kulkarni >> To: user@cassandra.apache.org >> Sent: Thursday, 29 September 2011 10:33 AM >> Subject: nodetools cfstats question >> >> Hey guys, >> I'm using a three node cluster running 0.8.6 with rf of 3. Its a freshly >> installed cluster with no upgrade history. >> I have 6 cfs and only one of them is written into. That cf has around on= e >> thousand keys. A quick key_range_scan verifies this. >> However when I do cfstats, I see the following for this cf. >> Number of Keys (estimate): 5248 >> Key cache capacity: 200000 >> Key cache size: 99329 >> What is the definition of these three output values? Both the Number of >> Keys and Key Cache size are way over what they should be. >> Thanks! >> > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com