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 A3B637E2A for ; Wed, 17 Aug 2011 22:50:50 +0000 (UTC) Received: (qmail 71336 invoked by uid 500); 17 Aug 2011 22:50:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 71271 invoked by uid 500); 17 Aug 2011 22:50:47 -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 71263 invoked by uid 99); 17 Aug 2011 22:50:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 22:50:47 +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 (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a50.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 22:50:40 +0000 Received: from homiemail-a50.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTP id 2B1266F8059 for ; Wed, 17 Aug 2011 15:50:18 -0700 (PDT) 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=ypch7f7o3h6EARMONCW2BJqwLdFs/w1w7pUD1aacJNh Xj0+kqCf8EfK96W03OozEEGergr+JzC3b4VtFt5xhrdQxAe/HfqcIG0MIQKLu3DA EljgikUgHHnnDisKDsDGD/XFtA9TCwnRaxhIkx2Yxsv8ItAhrnp1tHxjk1UR+2HM = 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=OWIwcmh1kORpC1V1LPkXvO/8/ao=; b=pTMkHalPl5 2klScPz8CjOGn4D/WQ9/RP/jylXU+EXPZZ1RREZ/xqxzrZjc5o7vlFV72NqY1Mf8 O35aY9j98NbjRAzcWIdTM+sgxjY3ExBJ2OAtn469AqB9qDq/qGW2kQHbDMUpWbkI E7uDev5zISbtBGh1Tp4ao5p19N3jtx7mA= Received: from 202-126-206-159.vectorcommunications.net.nz (unknown [202.126.206.159]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 9D85A6F8057 for ; Wed, 17 Aug 2011 15:50:07 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: Cassandra in Multiple Datacenters Active - Standby configuration From: aaron morton In-Reply-To: Date: Thu, 18 Aug 2011 10:49:58 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: <6B9C094A-5A26-4EDA-B2E0-B11137DA4AB5@thelastpickle.com> References: <07F7E832-F7CB-4E93-A67C-C2006050B9C5@thelastpickle.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org See the bug report, implementations of IPartitioner.describeOwnership() Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 18/08/2011, at 2:58 AM, Oleg Tsvinev wrote: > Aaron, >=20 > Can you point to a line in Cassandra sources where you believe it does > not understand the "multi ring" approach? > I'm not sure about Cassandra team but Hector team likes pull requests > with patches. > Anyways, I believe I should run a test to see if data is indeed > replicated between datacenters. >=20 > And I voted on the issue. >=20 > On Wed, Aug 17, 2011 at 2:20 AM, aaron morton = wrote: >>=20 >> The calculation for ownership does not understand the "multi ring" = approach to assigning tokens. I've created = https://issues.apache.org/jira/browse/CASSANDRA-3047 for you. >> Otherwise your tokens look good to me. >> Cheers >> ----------------- >> Aaron Morton >> Freelance Cassandra Developer >> @aaronmorton >> http://www.thelastpickle.com >> On 17/08/2011, at 9:19 AM, Oleg Tsvinev wrote: >>=20 >> Hi all, >>=20 >> I followed instructions here: >> http://wiki.apache.org/cassandra/Operations#Token_selection >> to create a Cassandra cluster spanning two datacenters. Now I see = that >> nodes belonging to DC2 datacenter own 0% of the ring. I would expect >> them to own 50%. >>=20 >> Does anyone have an idea what's going on here? >>=20 >> root@casper02:~# nodetool -h 10.4.64.63 ring >> Address DC Rack Status State Load >> Owns Token >>=20 >> 85070591730234615865843651857942052865 >> 10.4.64.63 DC1 RAC1 Up Normal 36.19 MB >> 50.00% 0 >> 10.4.65.55 DC2 RAC1 Up Normal 36.21 MB >> 0.00% 1 >> 10.4.65.73 DC1 RAC1 Up Normal 530.12 KB >> 50.00% 85070591730234615865843651857942052864 >> 10.4.64.166 DC2 RAC1 Up Normal 525.68 KB >> 0.00% 85070591730234615865843651857942052865 >>=20 >> Thank you, >> Oleg >>=20 >> ------------- >>=20 >> On Mon, Aug 15, 2011 at 1:39 PM, Oleg Tsvinev = wrote: >>=20 >> Hi all, >>=20 >> I have a question that documentation has not clear answer for. I have >>=20 >> the following requirements: >>=20 >> 1. Synchronously store data in datacenter DC1 on 2+ nodes >>=20 >> 2. Asynchronously replicate the same data to DC2 and store it on 2+ >>=20 >> nodes to act as a hot standby >>=20 >> Now, I have configured keyspaces with o.a.c.l.NetworkTopologyStrategy >>=20 >> with strategy_options=3D[{DC1:2, DC2:2}] and use LOCAL_QUORUM >>=20 >> consistency level, following documentation here: >>=20 >> http://www.datastax.com/docs/0.8/operations/datacenter >>=20 >> Now, how do I assign initial tokens? If I have, say 6 nodes total, 3 >>=20 >> in DC1 and 3 in DC2, and create a ring as if all 6 nodes share the >>=20 >> total 2^128 space equally. >>=20 >> Now say node N1:DC2 has key K and is in remote datacenter (for an app >>=20 >> in DC1). Wouldn't Cassandra always forward K to the DC2 node N1 thus >>=20 >> turning asynchronous writes into synchronous ones? Performance impact >>=20 >> will be huge as the latency between DC1 and DC2 is significant. >>=20 >> I hope there's an answer and I'm just missing something. My case = falls >>=20 >> under Disaster Recovery in >>=20 >> http://www.datastax.com/docs/0.8/operations/datacenter but I don't = see >>=20 >> how Cassandra will support my use case. >>=20 >> I appreciate any help on this. >>=20 >> Thank you, >>=20 >> Oleg >>=20 >>=20