cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: running two rings on the same subnet
Date Mon, 05 Mar 2012 10:37:47 GMT
> Would the rings be separate?
Yes. 
But I would recommend you give them different cluster names. It's a good protections against
nodes accidentally  joining the wrong cluster. 

cheers
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 5/03/2012, at 11:06 PM, Tamar Fraenkel wrote:

> Hi!
> I have a Cassandra  cluster with two nodes
> 
> nodetool ring -h localhost
> Address         DC          Rack        Status State   Load            Owns    Token
>                                                                                85070591730234615865843651857942052864
> 10.0.0.19       datacenter1 rack1       Up     Normal  488.74 KB       50.00%  0
> 10.0.0.28       datacenter1 rack1       Up     Normal  504.63 KB       50.00%  85070591730234615865843651857942052864
> 
> I want to create a second ring with the same name but two different nodes.
> using tokengentool I get the same tokens as they are affected from the number of nodes
in a ring.
> 
> My question is like this:
> Lets say I create two new VMs, with IPs: 10.0.0.31 and 10.0.0.11
> In 10.0.0.31 cassandra.yaml I will set
> initial_token: 0
> seeds: "10.0.0.31"
> listen_address: 10.0.0.31
> rpc_address: 0.0.0.0
> 
> In 10.0.0.11 cassandra.yaml I will set
> initial_token: 85070591730234615865843651857942052864
> seeds: "10.0.0.31"
> listen_address: 10.0.0.11
> rpc_address: 0.0.0.0 
> 
> Would the rings be separate?
> 
> Thanks,
> 
> Tamar Fraenkel 
> Senior Software Engineer, TOK Media 
> 
> <tokLogo.png>
> 
> tamar@tok-media.com
> Tel:   +972 2 6409736 
> Mob:  +972 54 8356490 
> Fax:   +972 2 5612956 
> 
> 
> 



-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com


Mime
View raw message