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 701B24E6B for ; Tue, 5 Jul 2011 17:07:52 +0000 (UTC) Received: (qmail 42297 invoked by uid 500); 5 Jul 2011 17:07:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 42238 invoked by uid 500); 5 Jul 2011 17:07:49 -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 42228 invoked by uid 99); 5 Jul 2011 17:07:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 17:07:49 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of s5alye@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 17:07:43 +0000 Received: by iye7 with SMTP id 7so6657260iye.31 for ; Tue, 05 Jul 2011 10:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=XneOYnaAPegkYaeaxk+KBefVTu1o383D8lpa3pim33k=; b=Ej/slu4rfAjVF7PjoUAXmK+IwV77I2vGFP5ll4lhM17NJLU739YsOFRGon8BeYI9S5 nYKH6zcLxC750dJ7l5MlB5dPsK0IX7/U93x0jIs8anI+kY9YaJ010SlNi0xQB3Eb8Rse BbCf29x5HDozmFOpIXOzpLKRNjtTnBxW3xzfM= MIME-Version: 1.0 Received: by 10.231.21.15 with SMTP id h15mr6905178ibb.76.1309885642491; Tue, 05 Jul 2011 10:07:22 -0700 (PDT) Received: by 10.231.14.4 with HTTP; Tue, 5 Jul 2011 10:07:22 -0700 (PDT) Date: Tue, 5 Jul 2011 13:07:22 -0400 Message-ID: Subject: How to make a node an exact replica of another node ? From: A J To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, Let me explain what I am trying to do: I am prototyping 2 Data centers (DC1 and DC2) with two nodes each. Say DC1_n1 and DC1_n2 nodes in DC1 and DC2_n1 and DC2_n2 in DC2. With PropertyFileSnitch and NetworkTopologyStrategy and 'strategy_options of DC1=1 and DC2=1', I am able to ensure that each DC has ONE AND ONLY ONE copy of ALL the keys. But how do I ensure that there is one to one mapping between the nodes? i.e. how to I ensure keys in DC1_n1 = keys in DC2_n1 and keys in DC1_n2 = keys in DC2_n2 ? Right now some keys of DC1_n1 are getting replicated to DC2_n1 and some to DC2_n2 (and the same for DC1_n2 keys). I am using RPP and calculating tokens to ensure that each node has 25% of the load (using the python script at http://www.datastax.com/docs/0.8/operations/clustering to come up with the tokens) Thanks for any inputs.