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 20BE39292 for ; Mon, 13 Feb 2012 02:09:40 +0000 (UTC) Received: (qmail 53646 invoked by uid 500); 13 Feb 2012 02:09:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 53624 invoked by uid 500); 13 Feb 2012 02:09:37 -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 53616 invoked by uid 99); 13 Feb 2012 02:09:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 02:09:37 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [74.207.230.237] (HELO ssl.humbaba.net) (74.207.230.237) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 02:09:30 +0000 Received: from [192.168.55.20] (unknown [173.11.86.119]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ssl.humbaba.net (Postfix) with ESMTPSA id 414E24704; Sun, 12 Feb 2012 18:09:02 -0800 (PST) Subject: Re: Multiple data center nodetool ring output display 0% owns Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: David Schairer In-Reply-To: <1329097355674-7279122.post@n2.nabble.com> Date: Sun, 12 Feb 2012 18:09:00 -0800 Cc: cassandra-user@incubator.apache.org Content-Transfer-Encoding: quoted-printable Message-Id: <323DBC99-8519-4E86-B69B-6520D53FA5CF@humbaba.net> References: <1329097355674-7279122.post@n2.nabble.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) There was a thread on this a couple days ago -- short answer, the 'owns = %' column is effectively incorrect when you're using multiple DCs. If = you had all 3 servers in 1 DC, since server YYY has token 1 and server = XXX has token 0, then server XXX would truly 'own' 0% (actually, = 1/(2^128) :) ), and depending on your replication factor might have no = data (if replication were 1). =20 But two data centers is effectively like two rings - since the two nodes = in DC2 are token-balanced, you'd see even distribution between them, and = DC1 has only one server, so that would be even as well (assuming you = replicate to both sites). --DRS On Feb 12, 2012, at 5:42 PM, Roshan wrote: > Hi >=20 > I have deployed Cassandra 1.0.6 to a 2 data center and one data center = (DC1) > having one node and the other data center (DC2) having two nodes. But = when I > do a nodetool ring using one IP, the output says 0% owns of DC1 node. = Please > see the output below. >=20 > # sh nodetool -h 10.XXX.XXX.XX ring > Address DC Rack Status State Load = Owns =20 > Token =20 >=20 > 85070591730234615865843651857942052864 =20 > XXX.XXX.XXX.XXX DC2 RAC1 Up Normal 83.89 KB =20= > 50.00% 0 =20 > YYY.YYY.YY.YYY DC1 RAC1 Up Normal 71.4 KB = 0.00% =20 > 1 =20 > ZZ.ZZZ.ZZZ.ZZ DC2 RAC1 Up Normal 65.94 KB =20= > 50.00% 85070591730234615865843651857942052864=20 >=20 > Could someone explain this behavior. =20 >=20 > -- > View this message in context: = http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Multiple-= data-center-nodetool-ring-output-display-0-owns-tp7279122p7279122.html > Sent from the cassandra-user@incubator.apache.org mailing list archive = at Nabble.com.