incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Multi datacenter setup question
Date Wed, 17 Apr 2013 19:49:55 GMT
> 1)      Let’s say in this case I insert a key at DC2 and its token is, let’s say 85070591730234615865843651857942052874,
in this case will it be owned by DC2 ? and then replicated on DC1 ? i.e. who owns it.
We don't think in terms of owning the token. 
The token range in the local DC that contains the token is used to find the first replica
for the row. The same process is used to find the replicas in the remote DC's. 

> 2)      Notice that the Owns distribution is not even, is this something I should be
worrying about ?
No. I think that's changed in the newer versions. 
 
> I am using Cassandra 1.0.12.

Please use version 1.1 or 1.2. 

Cheers


-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 18/04/2013, at 7:03 AM, "More, Sandeep R" <sandeep.r.more@intel.com> wrote:

> Hello,
> My test setup consist of two datacenters DC1 and DC2.
> DC2 has a offset of 10 as you can see in the following ring command.
>  
> I have two questions:
> 1)      Let’s say in this case I insert a key at DC2 and its token is, let’s say
85070591730234615865843651857942052874, in this case will it be owned by DC2 ? and then replicated
on DC1 ? i.e. who owns it.
> 2)      Notice that the Owns distribution is not even, is this something I should be
worrying about ?
>  
> I am using Cassandra 1.0.12.
>  
> Following is the ring command output:
>  
> Address         DC          Rack        Status State   Load            Owns    Token
>                                                                                     
                                                   85070591730234615865843651857942052874
> 10.0.0.1   DC1         RAC-1       Up     Normal  101.73 KB       50.00%  0
> 10.0.0.2   DC2         RAC-1       Up     Normal  92.55 KB        0.00%   10
> 10.0.0.3   DC1         RAC-1       Up     Normal  115.09 KB       50.00%  85070591730234615865843651857942052864
> 10.0.0.4   DC2         RAC-1       Up     Normal  101.62 KB       0.00%   85070591730234615865843651857942052874
>  
>  


Mime
View raw message