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 23E729BCF for ; Tue, 3 Apr 2012 13:18:53 +0000 (UTC) Received: (qmail 61103 invoked by uid 500); 3 Apr 2012 13:18:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 61052 invoked by uid 500); 3 Apr 2012 13:18:50 -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 61044 invoked by uid 99); 3 Apr 2012 13:18:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 13:18:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.44] (HELO mail-bk0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 13:18:43 +0000 Received: by bkuw5 with SMTP id w5so3685680bku.31 for ; Tue, 03 Apr 2012 06:18:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=BrhFHvNgfDC66RkoD8iPgXjQR150M4u60t3ZQadZKhI=; b=NSc68qkjqnEdY5Hs9G/nCfq32/GV+BTiz82ALySJbtGnOr8ixDqo/fX3J/h+635dts p7Qjvz9HLqpVrBaxrKRsFT2lagm3At2HnPmx3R7gtKdv1F/HtMLW0dh+v5s+8b85O1ao aR4vDVS/3HBHP5KtRWLUXY6UVdJnVJuFmhXa8RNEz78HHQf1fOGJKslcKA08sLxitmYP hhz3wxsYH+6zpppinqdC7Nr/+slWSmEAhuCIeSdMRqAEMSjV8BCrvaffnYNh+EbHZCuM H0+WzXyXvurtJbyVmOX/pnFBB2u0o6uvS/C2Xl5cvqwn5r1CN9OyDQxvgmILh7FEmDdN ISig== Received: by 10.205.121.138 with SMTP id gc10mr5670004bkc.23.1333459101845; Tue, 03 Apr 2012 06:18:21 -0700 (PDT) Received: from [10.10.1.63] (firewall.aspiro.com. [80.65.54.242]) by mx.google.com with ESMTPS id x4sm45868658bkv.8.2012.04.03.06.18.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Apr 2012 06:18:21 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Write performance compared to Postgresql From: Jeff Williams In-Reply-To: <12FE601D-42F7-4C69-9203-238EFA4DBA37@gmail.com> Date: Tue, 3 Apr 2012 15:18:20 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2DA6493E-BE99-4530-9E89-80AE0304C5EB@wherethebitsroam.com> References: <7B1606F9-19D2-46EB-831D-DF373F3C8E8B@wherethebitsroam.com> <12FE601D-42F7-4C69-9203-238EFA4DBA37@gmail.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQmMCoBdEyXxurswsiDp0UOLuCZQjGsjCK0E77HDCB+8mVQDYTs/aczV4hGVMCGFdXMLnjPu Ok, so you think the write speed is limited by the client and protocol, = rather than the cassandra backend? This sounds reasonable, and fits with = our use case, as we will have several servers writing. However, a bit = harder to test! Jeff On Apr 3, 2012, at 1:27 PM, Jake Luciani wrote: > Hi Jeff, >=20 > Writing serially over one connection will be slower. If you run many = threads hitting the server at once you will see throughput improve.=20 >=20 > Jake >=20 >=20 >=20 > On Apr 3, 2012, at 7:08 AM, Jeff Williams = wrote: >=20 >> Hi, >>=20 >> I am looking at cassandra for a logging application. We currently log = to a Postgresql database. >>=20 >> I set up 2 cassandra servers for testing. I did a benchmark where I = had 100 hashes representing logs entries, read from a json file. I then = looped over these to do 10,000 log inserts. I repeated the same writing = to a postgresql instance on one of the cassandra servers. The script is = attached. The cassandra writes appear to perform a lot worse. Is this = expected? >>=20 >> jeff@transcoder01:~$ ruby cassandra-bm.rb=20 >> cassandra >> 3.170000 0.480000 3.650000 ( 12.032212) >> jeff@transcoder01:~$ ruby cassandra-bm.rb=20 >> postgres >> 2.140000 0.330000 2.470000 ( 7.002601) >>=20 >> Regards, >> Jeff >>=20 >>