Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 72502 invoked from network); 26 Oct 2010 03:32:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 03:32:50 -0000 Received: (qmail 28696 invoked by uid 500); 26 Oct 2010 03:32:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 28555 invoked by uid 500); 26 Oct 2010 03:32:48 -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 28546 invoked by uid 99); 26 Oct 2010 03:32:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 03:32:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 03:32:42 +0000 Received: by fxm9 with SMTP id 9so3081038fxm.31 for ; Mon, 25 Oct 2010 20:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0/2o2PNqStijf78sjOE/N5WAgUcYNOmwLfs01XlTbHI=; b=p9e6kvFaKj61YU4RXh6WAk++mhl6LtTcCZqWFEHpUiSZT4ldWFPNsfLz84/4JCWY3x KPB3B/ih4+3UUW3MOpcvL3fHz05TxyP3tW9JbIgSdVMYU93FND29HE3IQQzxrrtnYk1w CJGAdesCOx43deP4siR2p3gpfiOFfXop3lbKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VYU3f3eN6G/2XBGuMzYaOqzlEduB6D0xU+9u3wKVr1pUqHwbebiIvMVm+ep5UwqrIF k+rAhuFhG6hRFqraM06smfuDcOdzMiLA4/R0Qxuo8nPjWvHsVLtpNjqPxpBvrK/pPdJU xVDpnnJqSHFyrbE66G8aYuOgPydk60dwcR9sU= MIME-Version: 1.0 Received: by 10.223.86.15 with SMTP id q15mr349792fal.101.1288063940647; Mon, 25 Oct 2010 20:32:20 -0700 (PDT) Received: by 10.223.118.3 with HTTP; Mon, 25 Oct 2010 20:32:20 -0700 (PDT) In-Reply-To: References: <7fd2347d-02f3-eead-87a6-d1ce4009f933@me.com> Date: Mon, 25 Oct 2010 23:32:20 -0400 Message-ID: Subject: Re: keys_cached percent? From: Edward Capriolo To: user@cassandra.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Oct 25, 2010 at 9:43 PM, Damick, Jeffrey wrote: > Sure - so percents aren=92t supported anymore in 0.7.x, which is fine, I = just > wanted to clarify. > > thanks > > > On 10/25/10 9:31 PM, "Aaron Morton" wrote: > > To cache 100% set the value to 1. The comments in the yaml below do > explicitly say this, but its discussed here > http://wiki.apache.org/cassandra/StorageConfiguration?highlight=3D(keys)|= (cached) > > Aaron > > > On 26 Oct, 2010,at 02:02 PM, "Damick, Jeffrey" > wrote: > > I tried a few variations, but when it set it to: 100% =A0or =93100%=94 or= similar > I get: > > ERROR 19:37:31,898 Fatal error: null; Can't construct a java object for > tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=3DCannot > create property=3Dkeyspaces for > JavaBean=3Dorg.apache.cassandra.config.Config@32955cd5; Cannot create > property=3Dcolumn_families for > JavaBean=3Dorg.apache.cassandra.config.RawKeyspace@31b446d1; Cannot creat= e > property=3Dkeys_cached for > JavaBean=3Dorg.apache.cassandra.config.RawColumnFamily@c68c26c; For input > string: "100%" > Bad configuration; unable to start server > > It looks like if it=92s yaml it doesn=92t pass through the > FBUtils.parseDoubleOrPercent(), and since the bean has a double the yaml > deserializer is blowing up... Just a guess.. > > -jeff > > > On 10/25/10 3:51 PM, "Aaron Morton" wrote: > > It should do, this is the comment from the yaml > > # =A0=A0=A0=A0- keys_cached: specifies the number of keys per sstable who= se > # =A0=A0=A0=A0=A0=A0=A0locations we keep in memory in "mostly LRU" order.= =A0(JUST the key > # =A0=A0=A0=A0=A0=A0=A0locations, NOT any column values.) Specify a fract= ion (value less > # =A0=A0=A0=A0=A0=A0=A0than 1) or an absolute number of keys to cache. = =A0Defaults to 200000 > # =A0=A0=A0=A0=A0=A0=A0keys. > > Is it not working? > Aaron > > > On 26 Oct, 2010,at 08:45 AM, "Damick, Jeffrey" > wrote: > > Does 0.7 not support percentages in the keys_cached (in the yaml config)? > =A0(I=92m on 07.0b2 so maybe it has been fixed?) > > thanks > > > > % IS supported .50 is 50%