Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 76342 invoked from network); 10 May 2010 19:58:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 19:58:55 -0000 Received: (qmail 39633 invoked by uid 500); 10 May 2010 19:58:55 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 39614 invoked by uid 500); 10 May 2010 19:58:55 -0000 Mailing-List: contact commits-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 commits@cassandra.apache.org Received: (qmail 39587 invoked by uid 99); 10 May 2010 19:58:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 19:58:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 19:58:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4AJwVgw026243 for ; Mon, 10 May 2010 19:58:31 GMT Message-ID: <3036231.3161273521511112.JavaMail.jira@thor> Date: Mon, 10 May 2010 15:58:31 -0400 (EDT) From: "Jeremy Hanna (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Assigned: (CASSANDRA-1066) DatacenterShardStrategy needs enforceable and keyspace based RF In-Reply-To: <6655713.39891273265507708.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna reassigned CASSANDRA-1066: --------------------------------------- Assignee: Jeremy Hanna > DatacenterShardStrategy needs enforceable and keyspace based RF > --------------------------------------------------------------- > > Key: CASSANDRA-1066 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1066 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 0.7 > Reporter: Jeremy Hanna > Assignee: Jeremy Hanna > Priority: Minor > > Currently, the DatacenterShardStrategy reads in a properties file - datacenters.properties - to get a per-datacenter replication factor. So any keyspace that is using the DSS in the cluster is using that same properties file to configure its replication factor. The implementation doesn't take into account the per-keyspace replication factor, but it is assumed that the sum of all the datacenter RF values equals the per-keyspace replication value that is part of the keyspace metadata. > It seems that an improvement could be two-fold: > 1. Enforce the replication factor for the keyspace as always equal the sum of all the datacenter RF values. Otherwise, if they aren't equal, bad things (tm) can happen. > 2. Make the datacenter RF values part of the keyspace metadata rather than a global value. Again, currently if any keyspace in the cluster is configured to use DSS, it will be using the global DC RF values found in the properties file. An improvement could be to instead of having the properties file, configure that on a per keyspace basis. That would make the cluster more multi-tenant friendly so it could be flexible with multiple keyspaces. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.