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 91A8210470 for ; Mon, 12 Aug 2013 23:20:23 +0000 (UTC) Received: (qmail 14212 invoked by uid 500); 12 Aug 2013 23:20:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14181 invoked by uid 500); 12 Aug 2013 23:20:20 -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 14173 invoked by uid 99); 12 Aug 2013 23:20:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 23:20:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msegalis@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-we0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 23:20:14 +0000 Received: by mail-we0-f176.google.com with SMTP id q56so5899719wes.7 for ; Mon, 12 Aug 2013 16:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=UVd9hup+mEJhv0PB+XMNnq/q55IddFo1VYnj/i8SmKo=; b=U+JQ7GBYeryuEE4cI9uQIBYt6gLucfWS6SlgNVgMiNTfLkZc7QPBJKfnQMuG1i2k4b HJTFvYUErInUcrooA112wSNU/2YDmUV+BSB1T00cIBiFxPKL7tmgSzN2o2LUj/dRT48M oppus+yxKNgp5hM/aYrUNNhDrICrMlbOBaRt9VDaMJGWzKMMOLXFFu4xEx30btW18jTL Zz52twzLUQnS/PGhHoy6CtCBgFK2Q/F+zoexaJsvkpL4C6K2fSY6uYK7Jg5hRaP8IWCi HybnPxDU2Qyu+Gx9Z56R8EFxR4qOlZfqLEyB/LeuyVI2AuG/b9QBHIopDboPBsClmBwT e7og== X-Received: by 10.180.189.37 with SMTP id gf5mr819275wic.9.1376349594432; Mon, 12 Aug 2013 16:19:54 -0700 (PDT) Received: from [10.0.1.9] (ney92-7-78-233-217-117.fbx.proxad.net. [78.233.217.117]) by mx.google.com with ESMTPSA id li9sm254093wic.2.2013.08.12.16.19.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Aug 2013 16:19:53 -0700 (PDT) From: Morgan Segalis Content-Type: multipart/alternative; boundary="Apple-Mail=_F200CD40-EA89-46CC-B0FB-5736425A265C" Message-Id: <8C4FF31F-6E26-4EDE-9733-3702E7BEA95A@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Having 2 nodes with 100% Ownership ? Date: Tue, 13 Aug 2013 01:19:53 +0200 References: To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_F200CD40-EA89-46CC-B0FB-5736425A265C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 It is still a little fuzzy when it comes to calculate a token for 50% = distribution=85 How do I do that, it is not like I wanted to have 10,23% = on one node, and 89,77% and the other ;-) I have found this website = http://blog.milford.io/cassandra-token-calculator/ not sure If I should = get the token from it eyes closed ? for 2 nodes it tells me to put 85070591730234615865843651857942052864 on = the second node. (For 2 node calculation) and the first one at 0. How come I can get 50% on both nodes if all data are replicated ? Le 12 ao=FBt 2013 =E0 21:20, Francisco Andrades Grassi = a =E9crit : > Hi, >=20 > You should use a 50% token distribution as Mohit pointed out, but = configure a replication factor of 2, so all your rows will be = effectively in both nodes. >=20 > -- > Francisco Andrades Grassi > www.bigjocker.com > @bigjocker >=20 > On Aug 12, 2013, at 2:44 PM, Morgan Segalis = wrote: >=20 >> Hi, thank you for you answer=85 >>=20 >> I don't want 50% I would like 100% so I one is down the second can = take over. >>=20 >> Thank you. >>=20 >> Le 12 ao=FBt 2013 =E0 21:09, Mohit Anchlia a = =E9crit : >>=20 >>> You need to get it to 50% on each to equally distribute the has = range. You need to 1) Calculate new token 2) move nodes to that token or = use vnodes For the first option see: >>> =20 >>> http://www.datastax.com/docs/0.8/install/cluster_init >>>=20 >>>=20 >>> =20 >>> On Mon, Aug 12, 2013 at 12:06 PM, Morgan Segalis = wrote: >>> Hi everyone, >>>=20 >>> I would like to have 100% Effective-Owership on both cassandra = nodes=85 >>>=20 >>> I just have created the second node now=85 >>>=20 >>> ./nodetool ring gives me : >>>=20 >>> Address DC Rack Status State Load = Effective-Owership Token >>> = = 17406244052094587115982865059561225030 >>> my.first.cassandra.ip datacenter1 rack1 Up Normal 1,2 = GB 89,77% 1 >>> my.sec.cassandra.ip datacenter1 rack1 Up Normal 1,37 GB = 10,23% 17406244052094587115982865059561225030 >>>=20 >>> What should I do in order to get 100% on both nodes ? >>>=20 >>> Thank you. >>>=20 >>=20 >=20 --Apple-Mail=_F200CD40-EA89-46CC-B0FB-5736425A265C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 It is = still a little fuzzy when it comes to calculate a token for 50% = distribution=85 How do I do that, it is not like I wanted to have 10,23% = on one node, and 89,77% and the other ;-)

I have = found this website http://blog.mi= lford.io/cassandra-token-calculator/ not sure If I should get the = token from it eyes closed ?

for 2 nodes it = tells me to put 85070591730234615865843651857942052864 on the = second node. (For 2 node calculation) and the first one at = 0.

How come I can get 50% on both nodes if all = data are replicated ?

Le 12 ao=FBt 2013 =E0 = 21:20, Francisco Andrades Grassi <bigjocker@gmail.com> a =E9crit = :

www.bigjocker.com
@bigjoc= ker

On Aug 12, 2013, at 2:44 PM, Morgan Segalis <msegalis@gmail.com> = wrote:

Hi, = thank you for you answer=85

I don't want 50% I would = like 100% so I one is down the second can take = over.

Thank you.

Le 12 = ao=FBt 2013 =E0 21:09, Mohit Anchlia <mohitanchlia@gmail.com> a = =E9crit :

You need to get it to 50% on each to equally = distribute the has range. You need to 1) Calculate new token 2) move = nodes to that token or use vnodes For the first option see:
 


 
On Mon, Aug 12, 2013 at 12:06 PM, Morgan = Segalis <msegalis@gmail.com> wrote:
Hi everyone,

I = would like to have 100% Effective-Owership on both cassandra = nodes=85

I just have created the second node now=85

./nodetool ring gives me :

Address       =   DC          Rack       =  Status State   Load           =  Effective-Owership  Token
        =                     =                     =                     =                     =                     =                     =             = 17406244052094587115982865059561225030
my.first.cassandra.ip   datacenter1 rack1       Up =     Normal  1,2 GB         =  89,77%         1
my.sec.cassandra.ip   = datacenter1 rack1       Up     Normal =  1,37 GB         10,23%       =  17406244052094587115982865059561225030

What should I do in order to get 100% on both nodes ?

Thank = you.

=



= --Apple-Mail=_F200CD40-EA89-46CC-B0FB-5736425A265C--