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 9B67D8056 for ; Tue, 13 Sep 2011 22:19:56 +0000 (UTC) Received: (qmail 73850 invoked by uid 500); 13 Sep 2011 22:19:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 73646 invoked by uid 500); 13 Sep 2011 22:19:54 -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 73620 invoked by uid 99); 13 Sep 2011 22:19:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 22:19:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a81.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 22:19:45 +0000 Received: from homiemail-a81.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a81.g.dreamhost.com (Postfix) with ESMTP id 06171A8064 for ; Tue, 13 Sep 2011 15:19:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=kIqXMSyjtx XPDqL96ARAS/pawrALAy5WePISfvLH3YIXyOk7ayiBOR/p/8gLIwFvXTx/antvRT 8EbtjPRMlaU1nO5Svdrw+Uy79fuM388aEJTrVAkaQbyWHRV3kvgw+4IKLn1UXoLS yLTuZW4PE2PuAu5i0uysQQiEuEzzgFYM8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=I1MK9b5CTCHZXD0v Zm1WYlElt8s=; b=XsWs9U6x9RlP2mxFujv3q4a731mgC+e2jODtgcXlGXgSikNY mBbCI7bqYywWuE1nUrx5JVpSaNQAhbh0hvNCI/Dp/jD5xSdsfoWxkm8Zi4oOmd3G 9nI0CX+6UKGJBwMgBtoNU65tjc04DGiad+JBU2jOQmvLGdD6j4THHvmJyd4= Received: from [172.16.1.4] (122-57-125-228.jetstream.xtra.co.nz [122.57.125.228]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a81.g.dreamhost.com (Postfix) with ESMTPSA id 0A482A805C for ; Tue, 13 Sep 2011 15:19:19 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/alternative; boundary="Apple-Mail=_F0A67FDC-EB34-402E-9924-4604ACF13641" Subject: Re: Configuring multi DC cluster Date: Wed, 14 Sep 2011 10:19:16 +1200 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_F0A67FDC-EB34-402E-9924-4604ACF13641 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Looks good to me. Last time I checked the Partitioner did not take the = DC into consideration = https://issues.apache.org/jira/browse/CASSANDRA-3047 Good luck.=20 ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 14/09/2011, at 8:41 AM, Anand Somani wrote: > Hi, >=20 > Just trying to setup a cluster of 4 nodes for multiDC scenario - with = 2 nodes in each DC. This is all on the same box just for testing the = configuration aspect. I have configured things as > PropertyFile > 127.0.0.4=3DSC:rack1 > 127.0.0.5=3DSC:rack2 > 127.0.0.6=3DAT:rack1 > 127.0.0.7=3DAT:rack2 > # default for unknown nodes > default=3DSC:rack1 > Setup initial tokens as - advised=20 > configured keyspace with SC:2, AT:2 > ring looks like > Address Status State Load Owns Token = =20 > = 85070591730234615865843651857942052865 =20 > 127.0.0.4 Up Normal 464.98 KB 50.00% 0 = =20 > 127.0.0.5 Up Normal 464.98 KB 0.00% 1 = =20 > 127.0.0.6 Up Normal 464.99 KB 50.00% = 85070591730234615865843651857942052864 =20 > 127.0.0.7 Up Normal 464.99 KB 0.00% = 85070591730234615865843651857942052865 > Is that what I should expect the ring to look like? Is there anything = else I should be testing/validating to make sure that things are = configured correctly for NTS? >=20 > Thanks > Anand --Apple-Mail=_F0A67FDC-EB34-402E-9924-4604ACF13641 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Looks = good to me. Last time I checked the Partitioner did not take the DC into = consideration https://issu= es.apache.org/jira/browse/CASSANDRA-3047

Good = luck. 

http://www.thelastpickle.com

On 14/09/2011, at 8:41 AM, Anand Somani wrote:

Hi,

Just trying to setup a cluster of 4 nodes for = multiDC scenario - with 2 nodes in each DC. This is all on the same box = just for testing the configuration aspect. I have configured things = as
  • PropertyFile
  • =
    • 127.0.0.4=3DSC:rack1
      127.0.0.5=3DSC:rack2
      127.0.0.6=3DAT:rac= k1
      127.0.0.7=3DAT:rack2
      # default for unknown = nodes
      default=3DSC:rack1
  • Setup initial tokens as - = advised 
  • configured keyspace with SC:2, AT:2
  • ring looks = like
    • Address         = Status State   = Load            = Owns    = Token           &nb= sp;            = ;            &= nbsp;  =
                 &nbs= p;            =             &n= bsp;           &nbs= p;      = 85070591730234615865843651857942052865      =
      127.0.0.4       Up     = Normal  464.98 KB       50.00%  = 0            &= nbsp;           &nb= sp;            = ;      =
      127.0.0.5       = Up     Normal  464.98 = KB       0.00%   = 1            &= nbsp;           &nb= sp;            = ;      =
      127.0.0.6       = Up     Normal  464.99 = KB       50.00%  = 85070591730234615865843651857942052864      =
      127.0.0.7       Up     = Normal  464.99 KB       = 0.00%   = 85070591730234615865843651857942052865
Is that what I = should expect the ring to look like? Is there anything else I should be = testing/validating to make sure that things are configured correctly for = NTS?

Thanks
Anand

= --Apple-Mail=_F0A67FDC-EB34-402E-9924-4604ACF13641--