Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 71250 invoked from network); 21 Mar 2010 04:05:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Mar 2010 04:05:02 -0000 Received: (qmail 47235 invoked by uid 500); 21 Mar 2010 04:05:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 47111 invoked by uid 500); 21 Mar 2010 04:05:02 -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 47099 invoked by uid 99); 21 Mar 2010 04:05:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Mar 2010 04:05:01 +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 jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Mar 2010 04:04:52 +0000 Received: by wwg30 with SMTP id 30so1554684wwg.31 for ; Sat, 20 Mar 2010 21:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=FhLfhY75iSsJ0icPz2utBMem3X5/TLH8h4e/PNfuyOY=; b=ZkNFFNnQzlm6dQhIL6sU3TFUF5oqcwIz32MIs85BegZwWTxJmkcn+xLg3t/oytFSLZ DY5Q9eFtaTKKJUMZe5f/KUGp/NDCmPH7q3hevjPNMRE8aJ0jCJZc6wa2qVUybCFInYaV z0sId0xHK+66qnvi7OGjUqLH1KdRuKnOOSlmU= 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=CwGuki5GACXy8UJsIjdBwJLbHZhZO6/37Lk4X8NKbH9U72mVgv+KjZnyGbzON9gJcE 70Baq7UZHlXoK9oivqvQ0q7M2NDl3rTqC4Uwts7TJmvz3kJPjzTCmYZi4+ws1OpiEZgl 8YQ2wtTV/66wJ593cX9UC74XTP4Q7WRRQpv0U= MIME-Version: 1.0 Received: by 10.216.86.148 with SMTP id w20mr1958339wee.112.1269144272140; Sat, 20 Mar 2010 21:04:32 -0700 (PDT) In-Reply-To: <47d8831a1003202028t7c7cae98u936df6d5f34385a7@mail.gmail.com> References: <47d8831a1003200644p429e6b22j47c26c18b2440f8d@mail.gmail.com> <47d8831a1003201953p5e0309abm462ffb4f70ccf609@mail.gmail.com> <47d8831a1003202011q7941b790rdd8a3203f8897715@mail.gmail.com> <47d8831a1003202028t7c7cae98u936df6d5f34385a7@mail.gmail.com> From: Jonathan Ellis Date: Sat, 20 Mar 2010 23:04:12 -0500 Message-ID: Subject: Re: why Cassandra 0.5.1 write speed is very slow To: user@cassandra.apache.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org If you're benchmarking throughput, then you absolutely have to be multithre= aded. 2010/3/20 =B9=F9=C5=F4 : > You mean I waste lots of time waiting for the write reply? > > How could I avoid this problem? Using multi-thread for very write operati= on? > > I am totally confused. > > Thx. > > =D4=DA 2010=C4=EA3=D4=C221=C8=D5 =C9=CF=CE=E711:16=A3=ACJonathan Ellis =D0=B4=B5=C0=A3=BA >> >> time a single-threaded client is spending waiting for a reply, is time >> it's not spending sending another request >> >> 2010/3/20 =B9=F9=C5=F4 : >> > Good ideal, I will try it with client multithread write. >> > >> > But I don't understand the meaning of "d the latency in cluster mode >> > hurts >> > that much more." >> > >> > Thx. >> > >> > 2010/3/21 Jonathan Ellis >> >> >> >> 2010/3/20 =B9=F9=C5=F4 : >> >> > :) >> >> > >> >> > I just want to know why the write speed is ok in the standalone mod= e >> >> > but >> >> > too >> >> > slow in the cluster mode. >> >> > >> >> > Am I doing something wrong? >> >> >> >> Probably, but it's hard to say what. >> >> >> >> Maybe you're just not using enough threads in your benchmark and the >> >> latency in cluster mode hurts that much more. >> > >> > >> > >> > -- >> > Regards >> > Peng Guo >> > > > > > -- > Regards > Peng Guo >