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 B1AD59B81 for ; Thu, 16 Feb 2012 09:15:42 +0000 (UTC) Received: (qmail 63029 invoked by uid 500); 16 Feb 2012 09:15:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 62986 invoked by uid 500); 16 Feb 2012 09:15:40 -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 62978 invoked by uid 99); 16 Feb 2012 09:15:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 09:15:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 09:15:34 +0000 Received: by vcbfk14 with SMTP id fk14so1555148vcb.31 for ; Thu, 16 Feb 2012 01:15:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.155.196 with SMTP id t4mr798780vcw.52.1329383712002; Thu, 16 Feb 2012 01:15:12 -0800 (PST) Received: by 10.220.228.202 with HTTP; Thu, 16 Feb 2012 01:15:11 -0800 (PST) In-Reply-To: <282B2A60-D039-41B2-BC36-F157DAF72D83@thelastpickle.com> References: <282B2A60-D039-41B2-BC36-F157DAF72D83@thelastpickle.com> Date: Thu, 16 Feb 2012 10:15:11 +0100 Message-ID: Subject: Re: Replication factor per column family From: "R. Verlangen" To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d043c7dbeec93cc04b91143aa X-Gm-Message-State: ALoCoQnNY0OXhXP293ZoZRPH1uy0mLIhBnWpoJ3gl08u0mboOrZvr+jFRtqC0YdqaRQHusJv2qYh --f46d043c7dbeec93cc04b91143aa Content-Type: text/plain; charset=ISO-8859-1 Hmm ok. This means if I want to have a CF with RF = 3 and another CF with RF = 1 (e.g. some debug logging) I will have to create 2 keyspaces? 2012/2/16 aaron morton > Multiple CF mutations for a row are treated atomically in the commit log, > and they are sent together to the replicas. Replication occurs at the row > level, not the row+cf level. > > If each CF had it's own RF, odd things may happen. Like sending a batch > mutation for one row and two CF's that fails because there is not enough > nodes for one of the CF's. > > Would be other reasons as well. In short it's baked in. > > Cheers > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 16/02/2012, at 9:54 PM, R. Verlangen wrote: > > Hi there, > > As the subject states: "Is it possible to set a replication factor per > column family?" > > Could not find anything of recent releases. I'm running Cassandra 1.0.7 > and I think it should be possible on a per CF basis instead of the whole > keyspace. > > With kind regards, > Robin > > > --f46d043c7dbeec93cc04b91143aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hmm ok. This means if I want to have a CF with RF =3D 3 and another CF with= RF =3D 1 (e.g. some debug logging) I will have to create 2 keyspaces?
<= br>
2012/2/16 aaron morton <= aaron@thelastpickle.com><= /span>
Mul= tiple CF mutations for a row are treated atomically in the commit log, and = they are sent together to the replicas. Replication occurs at the row level= , not the row+cf level.=A0

If each CF had it's own RF, odd things may happen. = Like sending a batch mutation for one row and two CF's that fails becau= se there is not enough nodes for one of the CF's.=A0

Would be other reasons as well. In short it's baked in.=A0

Cheers

<= div style=3D"word-wrap:break-word">
-----------------
Aaron Morton
Freelance Deve= loper
@aaronmorton

On 16/02/2012, at 9:54 PM, R. Verlangen wrote:

Hi there,

As the subject stat= es: "Is it possible to set a replication factor per column family?&quo= t;

Could not find anything of recent releases. I'm running = Cassandra 1.0.7 and I think it should be possible on a per CF basis instead= of the whole keyspace.

With kind regards,
Robin


--f46d043c7dbeec93cc04b91143aa--