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 D8C606B26 for ; Fri, 20 May 2011 08:32:54 +0000 (UTC) Received: (qmail 64322 invoked by uid 500); 20 May 2011 08:32:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 64298 invoked by uid 500); 20 May 2011 08:32:52 -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 64290 invoked by uid 99); 20 May 2011 08:32:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 08:32:52 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dikang85@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-px0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 08:32:43 +0000 Received: by pxi17 with SMTP id 17so2452216pxi.34 for ; Fri, 20 May 2011 01:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:message-id:in-reply-to:references :subject:x-mailer:mime-version:content-type :content-transfer-encoding; bh=oySHPmH0V12bN7nhe15iU9n4fF6G9PgDGeqta+7Yehc=; b=srkufcrBwl/+rdGEOfYw+Gp8Dvnwz1JV09OEF4oiLP7s+3lfCoHUO23gy/uROFEwUu W1xyXfpt7ENZeXyGtu41t5wKzQF5m9PZR71c4eZHlEFGXnz5oIKlrLjDVs1iwx5vCa0+ q+sk9C6GnuVLWlIPAOaRG/4R7YmfqRKCI59JY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding; b=KlYkAiJnSR9F5MVQoPcj6B3wP5XfbbaNZcXjCAzuriQrCWrC+ekyNJuLJDr48niCA4 hGW77K6KrNgfuPAA8k/93bBh2P5JUGmpsp81J/nNuggiNvO3xBVXB3ZfHdF6cay2QsFF M4FpOHnzzMxNrsvtTAAzAZ8LlRA9aAFH+vUZM= Received: by 10.68.29.100 with SMTP id j4mr1086373pbh.197.1305880342226; Fri, 20 May 2011 01:32:22 -0700 (PDT) Received: from Dikang-Gus-MacBook-Pro.local ([119.253.40.210]) by mx.google.com with ESMTPS id k9sm2312055pbc.34.2011.05.20.01.32.19 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 01:32:21 -0700 (PDT) Date: Fri, 20 May 2011 16:32:14 +0800 From: Dikang Gu To: user@cassandra.apache.org Message-ID: <70375285F34F4630B4B700D818015913@gmail.com> In-Reply-To: References: <39D6788E2320442ABAC9F4FCDCE6D8B4@gmail.com> Subject: Re: How to reduce the Read Latency. X-Mailer: sparrow 1.1.1 (build 685) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4dd6270e_613efdc5_77b" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org --4dd6270e_613efdc5_77b Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline I use the default consistency level in the hector client, so it should be QUORUM. -- Dikang Gu 0086 - 18611140205 On Friday, May 20, 2011 at 4:25 PM, Jeffrey Kesselman wrote: > What consistency are you asking for? > > On Fri, May 20, 2011 at 7:42 AM, Dikang Gu wrote: > > Hi All, > > I'm running three cassandra 0.7.4 nodes in a cluster, and I give 2G memory > > to each node. > > Now, I get the cfstats here: > > Keyspace: UserMap > > Read Count: 38411 > > Read Latency: 123.54214613001484 ms. > > Write Count: 44155 > > Write Latency: 0.02341093873853471 ms. > > Pending Tasks: 0 > > Column Family: Map > > SSTable count: 3 > > Space used (live): 32704387 > > Space used (total): 32704387 > > Memtable Columns Count: 49 > > Memtable Data Size: 3348 > > Memtable Switch Count: 56 > > Read Count: 38411 > > Read Latency: 123.542 ms. > > Write Count: 44155 > > Write Latency: 0.023 ms. > > Pending Tasks: 0 > > Key cache capacity: 200000 > > Key cache size: 611 > > Key cache hit rate: 0.9294361241314483 > > Row cache: disabled > > Compacted row minimum size: 125 > > Compacted row maximum size: 17436917 > > Compacted row mean size: 147647 > > You can find that the Read Latency is really high here, so what can I do to > > reduce the latency? Give more memory to the three nodes? Any other options? > > Thanks. > > -- > > Dikang Gu > > 0086 - 18611140205 > > > > -- > It's always darkest just before you are eaten by a grue. > --4dd6270e_613efdc5_77b Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I use the default consistency level in the hector c= lient, so it should be QUORUM.

-- 
Dikang Gu
0086 - 18611140205
=
=20 <=21--

On =46riday, Ma= y 20, 2011 at 4:25 PM, Jeffrey Kesselman wrote:

-->

On =46riday, May 20, 2= 011 at 4:25 PM, Jeffrey Kesselman wrote:

What consistency are you asking for=3F=

On =46ri, May 20, 2011 at 7:42 AM, Dikang Gu <dikang85=40gmail.com> wrote:
Hi All,
I'm running three cassandra 0.7.4= nodes in a cluster, and I give 2G memory
to each node.
Now, I get = the cfstats here:
Keyspace: UserMap
Read Count: 38411
Read Laten= cy: 123.54214613001484 ms.
Write Count: 44155
Write Latency: 0.0234= 1093873853471 ms.
Pending Tasks: 0
Column =46amily: Map
SSTable = count: 3
Space used (live): 32704387
Space used (total): 32704387Memtable Columns Count: 49
Memtable Data Size: 3348
Memtable Swit= ch Count: 56
Read Count: 38411
Read Latency: 123.542 ms.
Write C= ount: 44155
Write Latency: 0.023 ms.
Pending Tasks: 0
Key cache = capacity: 200000
Key cache size: 611
Key cache hit rate: 0.92943612= 41314483
Row cache: disabled
Compacted row minimum size: 125
Com= pacted row maximum size: 17436917
Compacted row mean size: 147647
Y= ou can find that the Read Latency is really high here, so what can I do t= o
reduce the latency=3F  Give more memory to the three nodes=3F A= ny other options=3F
Thanks.
--
Dikang Gu
0086 - 18611140205



--
It's always darkest just before y= ou are eaten by a grue.
=20 =20 =20 =20 =20

--4dd6270e_613efdc5_77b--