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 9467010DFC for ; Wed, 14 Aug 2013 19:12:54 +0000 (UTC) Received: (qmail 1036 invoked by uid 500); 14 Aug 2013 19:12:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 647 invoked by uid 500); 14 Aug 2013 19:12:49 -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 104 invoked by uid 99); 14 Aug 2013 19:12:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 19:12:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.128.174] (HELO mail-ve0-f174.google.com) (209.85.128.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 19:12:44 +0000 Received: by mail-ve0-f174.google.com with SMTP id d10so8005358vea.19 for ; Wed, 14 Aug 2013 12:12:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=7De1ZBhfD41O/y3ifjKM3DsDWVrPlVfH7WGO6DQNoso=; b=aNlyDh7Rt/VaT3gq5BG4jRUZ7ubRsgylPijlU/0A9hFlzDfdPix8WmULnTM0HMXvCu cbsW2uWvqEoY+kXdYvSjsN8HN9cROQQhSfm7g9hUuFrc4AVEHHsmQwEilsXSJHtwwLnU 8QkeWcp9phmyQf7doZTbmfTkjSmTIjWDJRY6+0cMlrW1of4vcXIfxmOfV87IfnbVZgjQ e7MAtW6fUuhGvBkacl1y+CAhNqccDRmZV2Y/L1KVe2Ar+mz8N+KA+0ERQuhr4PULBTiQ 6kVjyTtNhSNcYIMvPBG8YK7zYOcT/fy7xmLvz8F+2GVDWQcxjo9ChtTfYNxYtijw5Lz6 qA3g== X-Gm-Message-State: ALoCoQnwGBpR4vzDfkYzLonbzuMi8n+hLmqG72vEe6XN30A+ENOW4DU8ipRqizIyCxhTqoyBf4A1 X-Received: by 10.58.233.225 with SMTP id tz1mr651072vec.83.1376507522747; Wed, 14 Aug 2013 12:12:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.210.40 with HTTP; Wed, 14 Aug 2013 12:11:42 -0700 (PDT) X-Originating-IP: [2.123.96.7] In-Reply-To: References: From: Richard Low Date: Wed, 14 Aug 2013 20:11:42 +0100 Message-ID: Subject: Re: Vnodes, adding a node ? To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e013cbca8ecb31404e3ed2168 X-Virus-Checked: Checked by ClamAV on apache.org --089e013cbca8ecb31404e3ed2168 Content-Type: text/plain; charset=ISO-8859-1 On 14 August 2013 20:02, Andrew Cobley wrote: > I have small test cluster of 2 nodes. I ran a stress test on it and with > nodetool status received the following: > > /usr/local/bin/apache-cassandra-2.0.0-rc1/log $ ../bin/nodetool status > Datacenter: datacenter1 > ======================= > Status=Up/Down > |/ State=Normal/Leaving/Joining/Moving > -- Address Load Tokens Owns (effective) Host ID > Rack > UN 192.168.0.11 141.13 MB 256 49.2% > 4d281e2e-efd9-4abf-bb70-ebdf8e2b4fc3 rack1 > UN 192.168.0.10 145.59 MB 256 50.8% > 7fc5795a-bd1b-4e42-88d6-024c5216a893 rack1 > > I then added a third node with no machines writing to the system. Using > nodetool status I got the following: > > /usr/local/bin/apache-cassandra-2.0.0-rc1/log $ ../bin/nodetool status > Datacenter: datacenter1 > ======================= > Status=Up/Down > |/ State=Normal/Leaving/Joining/Moving > -- Address Load Tokens Owns (effective) Host ID > Rack > UN 192.168.0.11 141.12 MB 256 32.2% > 4d281e2e-efd9-4abf-bb70-ebdf8e2b4fc3 rack1 > UN 192.168.0.10 145.59 MB 256 35.3% > 7fc5795a-bd1b-4e42-88d6-024c5216a893 rack1 > UN 192.168.0.12 111.9 KB 256 32.5% > e5e6d8bd-c652-4c18-8fa3-3d71471eee65 rack1 > > Is this correct ? I was under the impression that adding a node to an > existing cluster would distribute the load around the cluster. Am I perhaps > missing a step or have a config error perhaps ? > How did you add the node? It looks like it didn't bootstrap but just joined the ring. You need to make sure the node is not set as a seed and that auto_bootstrap is true (the default). Alternatively, you could run 'nodetool rebuild' to stream data from the other nodes. Richard. --089e013cbca8ecb31404e3ed2168 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 14 August 2013 20:02, Andrew Cobley &= lt;a.e.cobley@= dundee.ac.uk> wrote:
I have =A0small test cluster of 2 nodes. =A0= I ran a stress test on it and with nodetool status received the following:<= br>
/usr/local/bin/apache-cassandra-2.0.0-rc1/log $ ../bin/nodetool status
Datacenter: datacenter1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Status=3DUp/Down
|/ State=3DNormal/Leaving/Joining/Moving
-- =A0Address =A0 =A0 =A0 Load =A0 =A0 =A0 Tokens =A0Owns (effective) =A0Ho= st ID =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Rack
UN =A0192.168.0.11 =A0141.13 MB =A0256 =A0 =A0 49.2% =A0 =A0 =A0 =A0 =A0 = =A0 4d281e2e-efd9-4abf-bb70-ebdf8e2b4fc3 =A0rack1
UN =A0192.168.0.10 =A0145.59 MB =A0256 =A0 =A0 50.8% =A0 =A0 =A0 =A0 =A0 = =A0 7fc5795a-bd1b-4e42-88d6-024c5216a893 =A0rack1

I then added a third node with no machines writing to the system. =A0Using = nodetool status I got the following:

/usr/local/bin/apache-cassandra-2.0.0-rc1/log $ ../bin/nodetool status
Datacenter: datacenter1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Status=3DUp/Down
|/ State=3DNormal/Leaving/Joining/Moving
-- =A0Address =A0 =A0 =A0 Load =A0 =A0 =A0 Tokens =A0Owns (effective) =A0Ho= st ID =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Rack
UN =A0192.168.0.11 =A0141.12 MB =A0256 =A0 =A0 32.2% =A0 =A0 =A0 =A0 =A0 = =A0 4d281e2e-efd9-4abf-bb70-ebdf8e2b4fc3 =A0rack1
UN =A0192.168.0.10 =A0145.59 MB =A0256 =A0 =A0 35.3% =A0 =A0 =A0 =A0 =A0 = =A0 7fc5795a-bd1b-4e42-88d6-024c5216a893 =A0rack1
UN =A0192.168.0.12 =A0111.9 KB =A0 256 =A0 =A0 32.5% =A0 =A0 =A0 =A0 =A0 = =A0 e5e6d8bd-c652-4c18-8fa3-3d71471eee65 =A0rack1

Is this correct ? =A0I was under the impression that adding a node to an ex= isting cluster would distribute the load around the cluster. Am I perhaps m= issing a step or have a config error perhaps ?

How did you add the node? =A0It looks like it didn't bootstr= ap but just joined the ring. =A0You need to make sure the node is not set a= s a seed and that auto_bootstrap is true (the default).

Alternatively, you could run 'nodetool rebuild' to stream data= from the other nodes.

Richard.=A0
--089e013cbca8ecb31404e3ed2168--