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 2D6A73F05 for ; Mon, 2 May 2011 18:41:02 +0000 (UTC) Received: (qmail 73302 invoked by uid 500); 2 May 2011 18:41:00 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 73278 invoked by uid 500); 2 May 2011 18:41:00 -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 73270 invoked by uid 99); 2 May 2011 18:41:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 18:41:00 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of etamme@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 18:40:52 +0000 Received: by fxm15 with SMTP id 15so4450763fxm.31 for ; Mon, 02 May 2011 11:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=P9AAqj5weudq9MhtdPoGeokjbitPov1fxDRYTXTUmGI=; b=QSSM6H6/jMABQ8Ah9X5j4EAS53Nw9NRgratbSP8GSGQ4vi0+clQFB7bLDTugSxY3hw bEfT5bvEd5p+xKbBtIGs7CHJkh17YGCm+M+MumMsMRvXnfipFDVzc33O+sDbps3p12gn hIKHwduOUg2yba+uy9FTn6YW78Ja4gXn+as04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PdVEDmVEF1NWkmmJjTbDo6RFl9jjewFIygyPgxmZMI+bbqF9XkfHSJiXZTkzD7AvLd vRi3FX7I31ahuOxagu6Px5C2//uBKlJz0VUXXDYQWvVCqdrYmDbxpcKCTeWmCir34qLm VQ0EMFupSkdfhBq1BvIrSKcdy5MA7jCwWYgOk= MIME-Version: 1.0 Received: by 10.223.100.86 with SMTP id x22mr803445fan.108.1304361632403; Mon, 02 May 2011 11:40:32 -0700 (PDT) Received: by 10.223.73.203 with HTTP; Mon, 2 May 2011 11:40:32 -0700 (PDT) Date: Mon, 2 May 2011 14:40:32 -0400 Message-ID: Subject: Replica data distributing between racks From: Eric tamme To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I am experiencing an issue where replication is not being distributed between racks when using PropertyFileSnitch in conjunction with NetworkTopologyStrategy. I am running 0.7.3 from a tar.gz on cassandra.apache.org I have 4 nodes, 2 data centers, and 2 racks in each data center. Each rack has 1 node. I have even token distribution so that each node gets 25%: 0 425352958651173079329218259289 71026432 85070591730234615865843651857942052864 127605887595351923798765477786913079296 My cassandra-topology.properties is as follows: # Cassandra Node IP=Data Center:Rack ffff\:0\:ffff\:eeee\:\:fffe=NY1:RAC1 ffff\:0\:ffff\:eeee\:\:ffff=NY1:RAC2 ffff\:0\:ffff\:ffff\:\:fffe=LA1:RAC1 ffff\:0\:ffff\:ffff\:\:ffff=LA1:RAC2 # default for unknown nodes default=NY1:RAC1 My Keyspace replication strategy is as follows: Keyspace: SipTrace: Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy Options: [LA1:1,NY1:1] So each data center should get 1 copy of the data, and this does happen. The problem is that the replicated copies get pinned to the first host configured in the properties file, from what I can discern, and DO NOT distribute between racks. So I have 2 nodes that have a 4 to 1 ratio of data compared to the other 2 nodes. This is a problem! Can any one please tell me if I have misconfigured this? Or how I can get replica data to distribute evenly between racks within a datacenter? I was led to believe that cassandra will try to distribute between racks for replica data automatically under this setup. Thank you for your help in advance! -Eric