On Wed, May 4, 2011 at 10:09 AM, Konstantin Naryshkin
wrote:
> The way that I understand it (and that seems to be consistent with what was
> said in this discussion) is that each DC has its own data space. Using your
> simplified 1-10 system:
> DC1 DC2
> 0 D1R1 D2R2
> 1 D1R1 D2R1
> 2 D
D2R2
8 D1R2 D2R2
9 D1R2 D2R2
Each node is responsible for half of the ring in its own DC.
- Original Message -
From: "Eric tamme"
To: user@cassandra.apache.org
Sent: Wednesday, May 4, 2011 1:58:19 PM
Subject: Re: Replica data distributing between racks
> Jonathan
> Jonathan is suggesting the approach Jeremiah was using.
>
> Calculate the tokens the nodes in each DC independantly, and then add
> 1 to the tokens if there are two nodes with the same tokens.
>
> In your case with 2 DC's with 2 nodes each.
>
> In DC 1
> node 1 = 0
> node 2
Eric,
Jonathan is suggesting the approach Jeremiah was using.
Calculate the tokens the nodes in each DC independantly, and then add 1
to the tokens if there are two nodes with the same tokens.
In your case with 2 DC's with 2 nodes each.
In DC 1
node 1 = 0
node 2 = 85
On Tue, May 3, 2011 at 4:08 PM, Jonathan Ellis wrote:
> On Tue, May 3, 2011 at 2:46 PM, aaron morton wrote:
>> Jonathan,
>> I think you are saying each DC should have it's own (logical) token
>> ring.
>
> Right. (Only with NTS, although you'd usually end up with a similar
> effect if you
On Tue, May 3, 2011 at 2:46 PM, aaron morton wrote:
> Jonathan,
> I think you are saying each DC should have it's own (logical) token
> ring.
Right. (Only with NTS, although you'd usually end up with a similar
effect if you alternate DC locations for nodes in a ONTS cluster.)
> Bu
Jonathan,
I think you are saying each DC should have it's own (logical) token
ring. Which makes sense as the only way to balance the load in each dc. I think
most people assume (including me) there was a single token ring for the entire
cluster.
But currently two endpoints can
On Tue, May 3, 2011 at 10:13 AM, Jonathan Ellis wrote:
> Right, when you are computing balanced RP tokens for NTS you need to
> compute the tokens for each DC independently.
I am confused ... sorry. Are you saying that ... I need to change how
my keys are calculated to fix this problem? Or are
Subject: Re: Replica data distributing between racks
Right, when you are computing balanced RP tokens for NTS you need to compute
the tokens for each DC independently.
On Tue, May 3, 2011 at 6:23 AM, aaron morton wrote:
> I've been digging into this and worked was able to reproduce someth
Right, when you are computing balanced RP tokens for NTS you need to
compute the tokens for each DC independently.
On Tue, May 3, 2011 at 6:23 AM, aaron morton wrote:
> I've been digging into this and worked was able to reproduce something, not
> sure if it's a fault and I can't work on it any m
I've been digging into this and worked was able to reproduce something, not
sure if it's a fault and I can't work on it any more tonight.
To reproduce:
- 2 node cluster on my mac book
- set the tokens as if they were nodes 3 and 4 in a 4 node cluster, e.g. node 1
with 8507059173023461586584365
On Mon, May 2, 2011 at 5:59 PM, aaron morton wrote:
> My bad, I missed the way TokenMetadata.ringIterator() and firstTokenIndex()
> work.
>
> Eric, can you show the output from nodetool ring ?
>
>
Sorry if the previous paste was way to unformatted, here is a
pastie.org link with nicer formatting
On Mon, May 2, 2011 at 5:59 PM, aaron morton wrote:
> My bad, I missed the way TokenMetadata.ringIterator() and firstTokenIndex()
> work.
>
> Eric, can you show the output from nodetool ring ?
>
Here is output from nodtool ring - ip addresses changed obviously.
Address Status State Lo
My bad, I missed the way TokenMetadata.ringIterator() and firstTokenIndex()
work.
Eric, can you show the output from nodetool ring ?
Aaron
On 3 May 2011, at 07:30, Eric tamme wrote:
> On Mon, May 2, 2011 at 3:22 PM, Jonathan Ellis wrote:
>> On Mon, May 2, 2011 at 2:18 PM, aaron morton wrot
On Mon, May 2, 2011 at 3:22 PM, Jonathan Ellis wrote:
> On Mon, May 2, 2011 at 2:18 PM, aaron morton wrote:
>> When the NTS selects replicas in a DC it orders the tokens available in the
>> DC, then (in the first pass) iterates through them placing a replica in each
>> unique rack. e.g. if th
On Mon, May 2, 2011 at 2:18 PM, aaron morton wrote:
> When the NTS selects replicas in a DC it orders the tokens available in the
> DC, then (in the first pass) iterates through them placing a replica in each
> unique rack. e.g. if the RF in each DC was 2, the replicas would be put on 2
> uni
That appears to be working correctly, but does not sound great.
When the NTS selects replicas in a DC it orders the tokens available in the
DC, then (in the first pass) iterates through them placing a replica in each
unique rack. e.g. if the RF in each DC was 2, the replicas would be put on 2
17 matches
Mail list logo