Re: does c* 3.0 use one ring for all datacenters?

2018-04-28 Thread Jinhua Luo
51-200 >> >> >> >> >> >> >> >> >> >> But here comes more questions: >> >> >> >> >> a) what if I add a new datacenter? Then the token ranges need >> >> >> >> >> to >> >> &g

Re: does c* 3.0 use one ring for all datacenters?

2018-04-26 Thread Jeff Jirsa
, what about the data associated with the ranges to be > >> >> >> >> balanced? > >> >> >> >> move them among DCs? > >> >> >> >> But that doesn't make sense, because each keyspace would > specify > >> &

Re: does c* 3.0 use one ring for all datacenters?

2018-04-26 Thread Jinhua Luo
> >> But that doesn't make sense, because each keyspace would specify >> >> >> >> its >> >> >> >> snith and fix the DCs to store then. >> >> >> >> >> >> >> >> b) It seems no bene

Re: does c* 3.0 use one ring for all datacenters?

2018-04-26 Thread Xiaolong Jiang
>> >> >> {dc1, node1} 51-100 > >> >> >> {dc2, node1} 1-50 > >> >> >> {dc2, node1} 51-100 > >> >> >> > >> >> >> I think this is not a trivial question, because each key would be > >> >

Re: does c* 3.0 use one ring for all datacenters?

2018-04-26 Thread Jinhua Luo
> >> >> {dc2, node1} 1-50 >> >> >> {dc2, node1} 51-100 >> >> >> >> >> >> I think this is not a trivial question, because each key would be >> >> >> hashed to determine the token it belongs to, and >> >> >

Re: does c* 3.0 use one ring for all datacenters?

2018-04-11 Thread Jinhua Luo
Thanks for your reply. I also think separate rings are more reasonable. So one ring for one dc is only for c* 1.x or 2.x without vnode? Check these references: https://docs.datastax.com/en/archived/cassandra/1.1/docs/initialize/token_generation.html http://www.luketillman.com/one-token-ring-to-r

RE: does c* 3.0 use one ring for all datacenters?

2018-04-11 Thread Jacques-Henri Berthemet
Hi, Each DC has the whole ring, each DC contains a copy of the same data. When you add replication to a new DC, all data is copied to the new DC. Within a DC, each range of token is 'owned' by a (primary) node (and replicas if you have RF > 1). If you add/remove a node in a DC, tokens will be