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 A1C26773B for ; Tue, 9 Aug 2011 22:54:12 +0000 (UTC) Received: (qmail 9727 invoked by uid 500); 9 Aug 2011 22:54:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 9677 invoked by uid 500); 9 Aug 2011 22:54:09 -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 9421 invoked by uid 99); 9 Aug 2011 22:54:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 22:54:09 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a78.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 22:54:01 +0000 Received: from homiemail-a78.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a78.g.dreamhost.com (Postfix) with ESMTP id BEC5D15C062 for ; Tue, 9 Aug 2011 15:53:39 -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=FNDyIsYA2Y gnfzKA4AZGjo7HKFJ2Isv54zlFf9PlAJfuFDU5M4JN9YGf2ou9j8FLPjvq9RAFz8 oAsuLWCpYDRq9NmgebSQkKsVH6kwM8+PV5/aBQkQ//uhG9yaRVWtHGYGuSfCnSXR pq8W331vUWSMdDxyC/Fymqm0AswpcmZkc= 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=eRXqX4Vc3aLD8zYT j5imjYna5fQ=; b=4tXQJX8xGKbskRpHhH69tGPQS3otzVCCfXkXpDRpuq0sM4Lj yfDDQe2YNweVriP2k68CpqpcR86gy8L832RlHhXUJ8lF+FlyVw5uhKOuywk4V8tX yyllwQ90Et8hm6xrgD40N+Dk4n/QLY+E8aN1+gthTYNkBL2UVwVpURADu34= Received: from 202-126-206-182.vectorcommunications.net.nz (unknown [202.126.206.182]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a78.g.dreamhost.com (Postfix) with ESMTPSA id 53A1A15C058 for ; Tue, 9 Aug 2011 15:53:37 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/alternative; boundary="Apple-Mail=_372AE643-DA23-4E38-BEBD-ACA818A2A0DA" Subject: Re: how to verify the row key is evenly distributed Date: Wed, 10 Aug 2011 10:53:31 +1200 In-Reply-To: <1312826644424-6665277.post@n2.nabble.com> To: user@cassandra.apache.org References: <1312826644424-6665277.post@n2.nabble.com> Message-Id: <1A929835-FBB6-47A7-BA33-61067CA8CED9@thelastpickle.com> X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_372AE643-DA23-4E38-BEBD-ACA818A2A0DA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii If your data is not evenly distributed check the tokens in the ring with = "nodetool ring" they should be evenly distributed. For background have a = look at http://wiki.apache.org/cassandra/Operations#Load_balancing if they are evenly distributed there are a couple of other things to = look at: - if you've moved the tokens, remember to do nodetool clean - the nodes may just be compacting at different rates=20 - you may have some very large rows=20 nodetool getendpoints is calling the getNaturalEndpoints() operation on = the StorageProxy MBean. You can call this via JMX and via JConsole.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 9 Aug 2011, at 06:04, myreasoner wrote: > Hi all, >=20 > I have a CF using incremental integer as row keys. In a 5-node = cluster with > RandomPartitioner, I've noticed the rows are not assigned evenly = across > nodes--two of them are 5 times heavier loaded than the rest. >=20 > In nodetool, I can do > *getendpoints - Print the end points that owns = the > key* >=20 > But is there any API I can call programmatically to determine the = endpoints > on a given set of row keys? >=20 >=20 > -- > View this message in context: = http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/how-to-ve= rify-the-row-key-is-evenly-distributed-tp6665277p6665277.html > Sent from the cassandra-user@incubator.apache.org mailing list archive = at Nabble.com. --Apple-Mail=_372AE643-DA23-4E38-BEBD-ACA818A2A0DA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii If = your data is not evenly distributed check the tokens in the ring with = "nodetool ring" they should be evenly distributed. For background have a = look at  http:/= /wiki.apache.org/cassandra/Operations#Load_balancing

if they are evenly distributed there are a couple of other things to = look at:
- if you've moved the tokens, remember to do nodetool = clean
- the nodes may just be compacting at different = rates 
- you may have some very large = rows 

nodetool getendpoints is calling = the getNaturalEndpoints() operation on the StorageProxy MBean. You = can call this via JMX and via =  JConsole. 

Cheers

http://www.thelastpickle.com

On 9 Aug 2011, at 06:04, myreasoner wrote:

Hi = all,

I have a CF using incremental integer as row keys.  In = a 5-node cluster with
RandomPartitioner, I've noticed the rows are = not assigned evenly across
nodes--two of them are 5 times heavier = loaded than the rest.

In nodetool, I can do
=  *getendpoints <keyspace> <cf> <key> - Print the = end points that owns the
key*

But is there any API I can call = programmatically to determine the endpoints
on a given set of row = keys?


--
View this message in context: htt= p://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/how-to-verif= y-the-row-key-is-evenly-distributed-tp6665277p6665277.html
Sent = from the cassandra-user@incubat= or.apache.org mailing list archive at Nabble.com.
= --Apple-Mail=_372AE643-DA23-4E38-BEBD-ACA818A2A0DA--