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 043699C67 for ; Mon, 5 Mar 2012 10:38:20 +0000 (UTC) Received: (qmail 24588 invoked by uid 500); 5 Mar 2012 10:38:17 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 24540 invoked by uid 500); 5 Mar 2012 10:38:17 -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 24530 invoked by uid 99); 5 Mar 2012 10:38:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 10:38:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a43.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 10:38:12 +0000 Received: from homiemail-a43.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTP id F09D58C06A for ; Mon, 5 Mar 2012 02:37:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= thelastpickle.com; b=Cspi5tps3og3DkxIa7O/1OQyKXl5zkyCUzYRoH+INDV i1parQZoW/UQ53Bvr/MSlHHUxT1TKARyQ2jrVT5R81Aut3pg+/hUMFqom3YZv5re AYn2esJZNLvNdFT6HyCf7sI0wtuZYwnMzhIlScpL7SBiJQBeR/tWNsnT/phMe3ug = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=3NSuDU6UKKZYlTQlSqOyWyKVJaA=; b=Zitzw0HQDF m1hXFgKuJBs3qrwVfdZNjOsXbnthTQsbID5dONIj8AEV0k73Ceeh85CEGEN5q7Ab uJcRd6Uc/uhGSvJxy0VkxIDOuPhxQx+9lg2ykYT3k7t9rdXv6GCrCvLdO+Lq9xLg IDa8viGQBARLEDf9LXRXmXTL52zOJUcTY= Received: from [172.16.1.3] (125-236-193-159.adsl.xtra.co.nz [125.236.193.159]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTPSA id 935A28C058 for ; Mon, 5 Mar 2012 02:37:50 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: running two rings on the same subnet From: aaron morton In-Reply-To: Date: Mon, 5 Mar 2012 23:37:47 +1300 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org > Would the rings be separate? Yes.=20 But I would recommend you give them different cluster names. It's a good = protections against nodes accidentally joining the wrong cluster.=20 cheers ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 5/03/2012, at 11:06 PM, Tamar Fraenkel wrote: > Hi! > I have a Cassandra cluster with two nodes >=20 > nodetool ring -h localhost > Address DC Rack Status State Load = Owns Token > = 85070591730234615865843651857942052864 > 10.0.0.19 datacenter1 rack1 Up Normal 488.74 KB = 50.00% 0 > 10.0.0.28 datacenter1 rack1 Up Normal 504.63 KB = 50.00% 85070591730234615865843651857942052864 >=20 > I want to create a second ring with the same name but two different = nodes. > using tokengentool I get the same tokens as they are affected from the = number of nodes in a ring. >=20 > My question is like this: > Lets say I create two new VMs, with IPs: 10.0.0.31 and 10.0.0.11 > In 10.0.0.31 cassandra.yaml I will set > initial_token: 0 > seeds: "10.0.0.31" > listen_address: 10.0.0.31 > rpc_address: 0.0.0.0 >=20 > In 10.0.0.11 cassandra.yaml I will set > initial_token: 85070591730234615865843651857942052864 > seeds: "10.0.0.31" > listen_address: 10.0.0.11 > rpc_address: 0.0.0.0=20 >=20 > Would the rings be separate? >=20 > Thanks, >=20 > Tamar Fraenkel=20 > Senior Software Engineer, TOK Media=20 >=20 > >=20 > tamar@tok-media.com > Tel: +972 2 6409736=20 > Mob: +972 54 8356490=20 > Fax: +972 2 5612956=20 >=20 >=20 >=20 ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com