From user-return-32444-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Wed Mar 6 07:45:47 2013 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 126F19E60 for ; Wed, 6 Mar 2013 07:45:47 +0000 (UTC) Received: (qmail 98037 invoked by uid 500); 6 Mar 2013 07:45:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97972 invoked by uid 500); 6 Mar 2013 07:45:43 -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 97079 invoked by uid 99); 6 Mar 2013 07:45:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 07:45:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a50.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 07:45:36 +0000 Received: from homiemail-a50.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTP id 45F126F8072 for ; Tue, 5 Mar 2013 23:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :content-type:message-id:mime-version:subject:date:references:to :in-reply-to; s=thelastpickle.com; bh=Oi5gbTawMiwQaBUEYVt77sndBq Y=; b=A6LO4yg4lT+1Wdo6bQDDqS8os5oBHqtdJTnjK7XycCb6a6KnUi5uax7Cmn BnZD4Xzl2V6S87cPJWj2taJmd8p2U3Qj+SkueHZRYcMX8qxLSegC5tEO6y+mvlzO FJvqq2iR6jhM8pdNkBARHejkmwHm27WxPEawtOGwaDuf5QKv8= Received: from [192.168.168.119] (c-98-234-52-29.hsd1.ca.comcast.net [98.234.52.29]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 2D60D6F806B for ; Tue, 5 Mar 2013 23:45:16 -0800 (PST) From: aaron morton Content-Type: multipart/alternative; boundary="Apple-Mail=_690BEBB7-CCF4-4011-867F-C452AF8C1018" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Cassandra instead of memcached Date: Tue, 5 Mar 2013 23:45:15 -0800 References: <1AF6A63F-43D8-4F48-B0CB-78DF9E94D382@venarc.com> <692C4AA7-7C01-4966-AFC2-902758E7BA37@instaclustr.com> <443E479E-8C3B-4846-AD76-4A66A50C4A14@venarc.com> To: user@cassandra.apache.org In-Reply-To: <443E479E-8C3B-4846-AD76-4A66A50C4A14@venarc.com> X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_690BEBB7-CCF4-4011-867F-C452AF8C1018 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii consider disabling durable_writes in the KS config to remove writing to = the commit log. That will speed things up for you. Note that you risk = losing data is cassandra crashes or is not shut down with nodetool = drain.=20 Even if you set the gc_grace to 0, deletes will still need to be = committed to disk.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 5/03/2013, at 9:51 AM, Drew Kutcharian wrote: > Thanks Ben, that article was actually the reason I started thinking = about removing memcached. >=20 > I wanted to see what would be the optimum config to use C* as an = in-memory store. >=20 > -- Drew >=20 >=20 > On Mar 5, 2013, at 2:39 AM, Ben Bromhead wrote: >=20 >> Check out = http://techblog.netflix.com/2012/07/benchmarking-high-performance-io-with.= html >>=20 >> Netflix used Cassandra with SSDs and were able to drop their memcache = layer. Mind you they were not using it purely as an in memory KV store. >>=20 >> Ben >> Instaclustr | www.instaclustr.com | @instaclustr >>=20 >>=20 >>=20 >> On 05/03/2013, at 4:33 PM, Drew Kutcharian wrote: >>=20 >>> Hi Guys, >>>=20 >>> I'm thinking about using Cassandra as an in-memory key/value store = instead of memcached for a new project (just to get rid of a dependency = if possible). I was thinking about setting the replication factor to 1, = enabling off-heap row-cache and setting gc_grace_period to zero for the = CF that will be used for the key/value store. >>>=20 >>> Has anyone tried this? Any comments? >>>=20 >>> Thanks, >>>=20 >>> Drew >>>=20 >>>=20 >>=20 >=20 --Apple-Mail=_690BEBB7-CCF4-4011-867F-C452AF8C1018 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
http://www.thelastpickle.com

On 5/03/2013, at 9:51 AM, Drew Kutcharian <drew@venarc.com> wrote:

Thanks Ben, that article was = actually the reason I started thinking about removing = memcached.

I wanted to see what would be the optimum = config to use C* as an in-memory store.

-- = Drew


On Mar 5, 2013, at 2:39 AM, = Ben Bromhead <ben@instaclustr.com> = wrote:

Check = out http://techblog.netflix.com/2012/07/benchmarking-high-perfor= mance-io-with.html

Netflix used Cassandra with = SSDs and were able to drop their memcache layer. Mind you they were not = using it purely as an in memory KV store.

Ben
Instaclustr | www.instaclustr.com | = @instaclustr
<= br>


On 05/03/2013, at 4:33 PM, Drew Kutcharian <drew@venarc.com> wrote:

Hi = Guys,

I'm thinking about using Cassandra as an in-memory = key/value store instead of memcached for a new project (just to get rid = of a dependency if possible). I was thinking about setting the = replication factor to 1, enabling off-heap row-cache and setting = gc_grace_period to zero for the CF that will be used for the key/value = store.

Has anyone tried this? Any = comments?

Thanks,

Drew





<= /div>= --Apple-Mail=_690BEBB7-CCF4-4011-867F-C452AF8C1018--