Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 94578 invoked from network); 7 Jun 2010 11:27:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 11:27:05 -0000 Received: (qmail 25766 invoked by uid 500); 7 Jun 2010 11:27:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 25504 invoked by uid 500); 7 Jun 2010 11:27:01 -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 25491 invoked by uid 99); 7 Jun 2010 11:27:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 11:27:01 +0000 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=AWL,FREEMAIL_FROM,FS_REPLICA,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rantav@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 11:26:56 +0000 Received: by iwn42 with SMTP id 42so3263168iwn.31 for ; Mon, 07 Jun 2010 04:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=ZHe86GERDYb/fvsW2uzEvkRnFFMdwX+k/uNuYl5jw64=; b=iXfb8AXXGY/vsH2KwAway/aVD2t46so8V6ulPSmovdS0fnLydgWhD5yavIvqEufkGh jpBH4QNszuSHWbXDYota/pKHUOg1AdFgoKw91pkas9299CCbcsruZxP2iCM6u6u8aMXq 0xi+2DmkCu8QVJBFfOZJZuEN4yglzKPApCqyU= 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; b=wFTwjJleTY7it3uqhJkUhlKV05PCBXcqsJncnTBp5BakNfr+LuS4xRlNPRvthZp1rd 8B+H/PGZj8Q6NlglQoGE79MnQHrWG1egQDMlN6BM46lxhSr2JEhb7SThDtowC2nTe2gK B3lLZjH3C+joLFs1PWTakjr3DHuqRiLE7tUTo= Received: by 10.231.32.129 with SMTP id c1mr4247332ibd.112.1275909995259; Mon, 07 Jun 2010 04:26:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.172.79 with HTTP; Mon, 7 Jun 2010 04:26:15 -0700 (PDT) In-Reply-To: <1C02D040F8560347822BE76ECDB76A18408F94B286@MAIL01.interprise.dk> References: <1C02D040F8560347822BE76ECDB76A18408F94B286@MAIL01.interprise.dk> From: Ran Tavory Date: Mon, 7 Jun 2010 14:26:15 +0300 Message-ID: Subject: Re: Is ReplicationFactor values number of replicas or number of copies of data? To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=002215048d0b08666f04886ef2b0 --002215048d0b08666f04886ef2b0 Content-Type: text/plain; charset=UTF-8 to have two copies you need RF=2. RF=0 doesn't make sense as far as I understand it. On Mon, Jun 7, 2010 at 2:16 PM, Per Olesen wrote: > Hi, > > I am unclear about what the ReplicationFactor value means. > > Does RF=1 mean that there is only one single node that has the data in the > cluster (actually no replication), or, does it mean, that there are two > copies of the data - one "actual" and one "replica" (as in "replicated one > time")? > > I noticed, that I CAN start a node with RF=0, but I get > UnavailableException when trying to insert, so I assume RF=0 is wrong then? > > Put another way: If I want my data to always live on exactly 2 nodes in the > cluster, do I set RF=2 or RF=1? :-) > > /Per --002215048d0b08666f04886ef2b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
to have two copies you need RF=3D2.
RF=3D0 doesn't= make sense as far as I understand it.

On= Mon, Jun 7, 2010 at 2:16 PM, Per Olesen <pol@trifork.com> wrote:
Hi,

I am unclear about what the ReplicationFactor value means.

Does RF=3D1 mean that there is only one single node that has the data in th= e cluster (actually no replication), or, does it mean, that there are two c= opies of the data - one "actual" and one "replica" (as = in "replicated one time")?

I noticed, that I CAN start a node with RF=3D0, but I get UnavailableExcept= ion when trying to insert, so I assume RF=3D0 is wrong then?

Put another way: If I want my data to always live on exactly 2 nodes in the= cluster, do I set RF=3D2 or RF=3D1? :-)

/Per

--002215048d0b08666f04886ef2b0--