You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Adeel Akbar <ad...@panasiangroup.com> on 2012/12/17 09:42:17 UTC

Adding New Node to an Existing Cluster

Hi,

I am using Cassandra Cluster 1.1.4 with two nodes alongwith REPLICA 
factor 2. I have added one new node in my existing Cassandra Cluster 
with instruction provided on 
http://www.datastax.com/docs/1.1/operations/cluster_management. Now Its 
only showing 285 MB data instead of 250GB +. Please let me know, can we 
required to execute any command to balance the data in all three nodes.

# /opt/apache-cassandra-1.1.4/bin/nodetool -h localhost ring
*Address         DC          Rack        Status State Load            
Effective-Ownership Token *
        111379633042792501120498209932601771854
XX.XX.XX.C      DC1         RAC1        Up     Normal *286.58 MB * 
55.76%              16631224681855479515247230241845664688
XX.XX.XX.B      DC1         RAC1        Up     Normal  278.23 GB       
88.55% 91902851206288351623775585543017122534
XX.XX.XX.A      DC1         RAC1        Up     Normal  275.85 GB       
55.69% 111379633042792501120498209932601771854

Regards,

*Adeel Akbar*

Re: Adding New Node to an Existing Cluster

Posted by aaron morton <aa...@thelastpickle.com>.
Use nodetool move and change the tokens one at a time to the values suggested by Tomas. 

for background http://www.datastax.com/docs/1.1/references/nodetool#nodetool-move

Each move will take some time, you will see the node state change from UP to MOVING in the output from nodetool ring. When it's back to UP the move is done. 

*Note:* before making the change you should increase your RF to 3 and run a repair with nodetool (using the -pr option). This will make sure your data is fully distributed to all nodes. You should also make your code use the QUOURM CL .

Hope that helps. 

Aaron

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 17/12/2012, at 11:53 PM, Adeel Akbar <ad...@panasiangroup.com> wrote:

> Dear Tomas,
> 
> I didn't use token values in configuration. A new node automatically picked a token range when joined the cluster. Previously Nodes A and B server and now I want to serve all these node like A+B+C.  
> 
> Thanks & Regards
> 
> Adeel Akbar
> 
> On 12/17/2012 3:47 PM, Tomas Nunez wrote:
>> These tokens don't seem balanced at all. You should use "nodetool move" to move those tokens to some balanced values, for instance:
>> 
>> C: 0
>> B: 56713727820156407428984779325531226112
>> A: 113427455640312814857969558651062452224
>> 
>> 
>> 
>> 
>> 2012/12/17 Adeel Akbar <ad...@panasiangroup.com>
>> Hi,
>> 
>> I am using Cassandra Cluster 1.1.4 with two nodes alongwith REPLICA factor 2. I have added one new node in my existing Cassandra Cluster with instruction provided on http://www.datastax.com/docs/1.1/operations/cluster_management. Now Its only showing 285 MB data instead of 250GB +. Please let me know, can we required to execute any command to balance the data in all three nodes. 
>> 
>> # /opt/apache-cassandra-1.1.4/bin/nodetool -h localhost ring
>> Address         DC          Rack        Status State   Load            Effective-Ownership Token                                       
>>                                                                                                   111379633042792501120498209932601771854     
>> XX.XX.XX.C      DC1         RAC1        Up     Normal  286.58 MB      55.76%              16631224681855479515247230241845664688      
>> XX.XX.XX.B      DC1         RAC1        Up     Normal  278.23 GB       88.55%              91902851206288351623775585543017122534      
>> XX.XX.XX.A      DC1         RAC1        Up     Normal  275.85 GB       55.69%              111379633042792501120498209932601771854    
>> 
>> Regards,
>> 
>> Adeel Akbar
>> 
>> 
>> 
>> -- 
>> <Mail Attachment.jpeg>
>> www.groupalia.com	
>> Tomàs Núñez
>> IT-Sysprod
>> Tel. + 34 93 159 31 00 
>> Fax. + 34 93 396 18 52
>> Llull, 95-97, 2º planta, 08005 Barcelona
>> Skype: tomas.nunez.groupalia
>> tomas.nunez@groupalia.com
>> <Mail Attachment.png> Twitter    <Mail Attachment.png> Facebook    <Mail Attachment.png> Linkedin
> 


Re: Adding New Node to an Existing Cluster

Posted by Adeel Akbar <ad...@panasiangroup.com>.
Dear Tomas,

I didn't use token values in configuration. A new node automatically 
picked a token range when joined the cluster. Previously Nodes A and B 
server and now I want to serve all these node like A+B+C.


Thanks & Regards

*Adeel**Akbar*

On 12/17/2012 3:47 PM, Tomas Nunez wrote:
> These tokens don't seem balanced at all. You should use "nodetool 
> move" to move those tokens to some balanced values, for instance:
>
> C: 0
> B: 56713727820156407428984779325531226112
> A: 113427455640312814857969558651062452224
>
>
>
>
> 2012/12/17 Adeel Akbar <adeel.akbar@panasiangroup.com 
> <ma...@panasiangroup.com>>
>
>     Hi,
>
>     I am using Cassandra Cluster 1.1.4 with two nodes alongwith
>     REPLICA factor 2. I have added one new node in my existing
>     Cassandra Cluster with instruction provided on
>     http://www.datastax.com/docs/1.1/operations/cluster_management.
>     Now Its only showing 285 MB data instead of 250GB +. Please let me
>     know, can we required to execute any command to balance the data
>     in all three nodes.
>
>     # /opt/apache-cassandra-1.1.4/bin/nodetool -h localhost ring
>     *Address         DC          Rack        Status State  
>     Load            Effective-Ownership Token *
>            111379633042792501120498209932601771854
>     XX.XX.XX.C      DC1         RAC1        Up     Normal *286.58 MB *
>     55.76% 16631224681855479515247230241845664688
>     XX.XX.XX.B      DC1         RAC1        Up     Normal 278.23
>     GB       88.55% 91902851206288351623775585543017122534
>     XX.XX.XX.A      DC1         RAC1        Up     Normal 275.85
>     GB       55.69% 111379633042792501120498209932601771854
>
>     Regards,
>
>     *Adeel Akbar*
>
>
>
>
> -- 
> Groupalia <http://es.groupalia.com/>
> www.groupalia.com <http://es.groupalia.com/> 	
> Tomàs Núñez
> IT-Sysprod
> Tel. + 34 93 159 31 00
> Fax. + 34 93 396 18 52
> Llull, 95-97, 2º planta, 08005 Barcelona
> Skype: tomas.nunez.groupalia
> tomas.nunez@groupalia.com <ma...@groupalia.com>
> Twitter Twitter <http://twitter.com/#%21/groupaliaes> Twitter Facebook 
> <https://www.facebook.com/GroupaliaEspana> Twitter Linkedin 
> <http://www.linkedin.com/company/groupalia>
>
>


Re: Adding New Node to an Existing Cluster

Posted by Tomas Nunez <to...@groupalia.com>.
These tokens don't seem balanced at all. You should use "nodetool move" to
move those tokens to some balanced values, for instance:

C: 0
B: 56713727820156407428984779325531226112
A: 113427455640312814857969558651062452224




2012/12/17 Adeel Akbar <ad...@panasiangroup.com>

>  Hi,
>
> I am using Cassandra Cluster 1.1.4 with two nodes alongwith REPLICA factor
> 2. I have added one new node in my existing Cassandra Cluster with
> instruction provided on
> http://www.datastax.com/docs/1.1/operations/cluster_management. Now Its
> only showing 285 MB data instead of 250GB +. Please let me know, can we
> required to execute any command to balance the data in all three nodes.
>
> # /opt/apache-cassandra-1.1.4/bin/nodetool -h localhost ring
> *Address         DC          Rack        Status State   Load
> Effective-Ownership Token                                       *
>
>        111379633042792501120498209932601771854
> XX.XX.XX.C      DC1         RAC1        Up     Normal  *286.58 MB *
> 55.76%              16631224681855479515247230241845664688
> XX.XX.XX.B      DC1         RAC1        Up     Normal  278.23 GB
> 88.55%              91902851206288351623775585543017122534
> XX.XX.XX.A      DC1         RAC1        Up     Normal  275.85 GB
> 55.69%              111379633042792501120498209932601771854
>
> Regards,
>
> *Adeel Akbar*
>



-- 
[image: Groupalia] <http://es.groupalia.com/>
www.groupalia.com <http://es.groupalia.com/>Tomàs NúñezIT-SysprodTel. + 34
93 159 31 00 Fax. + 34 93 396 18 52Llull, 95-97, 2º planta, 08005
BarcelonaSkype:
tomas.nunez.groupaliatomas.nunez@groupalia.com<no...@groupalia.com>[image:
Twitter] Twitter <http://twitter.com/#%21/groupaliaes>    [image: Twitter]
 Facebook <https://www.facebook.com/GroupaliaEspana>    [image: Twitter]
 Linkedin <http://www.linkedin.com/company/groupalia>