Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 13962 invoked from network); 15 Jun 2010 18:01:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jun 2010 18:01:36 -0000 Received: (qmail 59667 invoked by uid 500); 15 Jun 2010 18:01:36 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 59529 invoked by uid 500); 15 Jun 2010 18:01:35 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 59521 invoked by uid 99); 15 Jun 2010 18:01:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 18:01:35 +0000 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FS_REPLICA,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremy.hanna1234@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 18:01:28 +0000 Received: by gyh4 with SMTP id 4so3587631gyh.31 for ; Tue, 15 Jun 2010 11:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=SEa4fg0lZyldTpKHvK5+upVoFsWwtl+tB7oUFWY7kfI=; b=gb28VHobG3P/EuUupFDeGnE0sfn1VCHWJVgKQjOgz9t2RNK5LTRInCWgpfz653h3Pd vLgkP3WBvJJAywPl8RYMgOttldadCw9tnO5GC7+qisUB4lmwJ+yyxQZTYopNjC/vFDmC nb6KLR+nPgOyDONzSnY4crEHqUUkuR/MFF/Qg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=u7gXWy1jZEhZfcLxZ+N6CmtGkAjeSrDI28Vfj7tpYutITFvCv2NsArLXKyy2uXnhTC bjMQhuCe0BFm5uihe0FXynmrPmoRQp3MRHMoiqguR2YC+hrsIO2chAEyROxNQ9prDZ2y vEE4aj+NhBhGpxN4w8d0I2/mTYF1MPK0ACPmg= Received: by 10.151.18.38 with SMTP id v38mr8671295ybi.420.1276624867378; Tue, 15 Jun 2010 11:01:07 -0700 (PDT) Received: from m62a7xj.rackspace.corp (fw1-aus1.rackspace.net [64.39.0.68]) by mx.google.com with ESMTPS id 20sm3177612ywh.7.2010.06.15.11.01.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 11:01:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: Replication Factor and Data Centers From: Jeremy Hanna In-Reply-To: Date: Tue, 15 Jun 2010 13:01:03 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@cassandra.apache.org X-Mailer: Apple Mail (2.1078) On Jun 15, 2010, at 12:43 AM, Masood Mortazavi wrote: > Is the clearer interpretation of this statement (in > conf/datacenters.properties) given anywhere else? >=20 > # The sum of all the datacenter replication factor values should equal > # the replication factor of the keyspace (i.e. sum(dc_rf) =3D RF) >=20 > # keyspace\:datacenter=3Dreplication factor > Keyspace1\:DC1=3D3 > Keyspace1\:DC2=3D2 > Keyspace1\:DC3=3D1 >=20 > Does the above example configuration imply that Keyspace1 has a RF of = 6, and > that of these 3 will go to DC1, 2 to DC2 and 1 to DC3? >=20 Yes, that's the idea. > What will happen if datacenters.properties and = cassandra-rack.properties are > simply empty? >=20 It will throw a configuration exception if the properties files are not = there. There may be changes to how this is done before 0.7 is finalized = though. For example the configuration files may be turned into simple = thrift calls like what is being done with the dynamic keyspace = configuration.=20 > - m.