incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Segalis <msega...@gmail.com>
Subject Re: Having 2 nodes with 100% Ownership ?
Date Mon, 12 Aug 2013 23:19:53 GMT
It is still a little fuzzy when it comes to calculate a token for 50% distribution… 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ût 2013 à 21:20, Francisco Andrades Grassi <bigjocker@gmail.com> a écrit
:

> Hi,
> 
> 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.
> 
> --
> Francisco Andrades Grassi
> www.bigjocker.com
> @bigjocker
> 
> On Aug 12, 2013, at 2:44 PM, Morgan Segalis <msegalis@gmail.com> wrote:
> 
>> Hi, thank you for you answer…
>> 
>> I don't want 50% I would like 100% so I one is down the second can take over.
>> 
>> Thank you.
>> 
>> Le 12 août 2013 à 21:09, Mohit Anchlia <mohitanchlia@gmail.com> a écrit
:
>> 
>>> 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:
>>>  
>>> http://www.datastax.com/docs/0.8/install/cluster_init
>>> 
>>> 
>>>  
>>> 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…
>>> 
>>> I just have created the second node now…
>>> 
>>> ./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.
>>> 
>> 
> 


Mime
View raw message