Re: token distribution in multi-dc

2017-05-02 Thread vasu gunja
In that case there will be duplication of tokens ranges will present cluster right ?. Please prove On Mon, May 1, 2017 at 7:54 PM, Justin Cameron wrote: > Hi Vasu, > > Each DC has a complete token range. > > Cheers, > Justin > > On Tue, 2 May 2017 at 06:32 vasu gunja wrote: > >> Hi , >> >> I h

Re: token distribution in multi-dc

2017-05-02 Thread vasu gunja
I'm confused now. please someone confirm with proof. On Tue, May 2, 2017 at 4:54 PM, vasu gunja wrote: > In that case there will be duplication of tokens ranges will present > cluster right ?. > Please prove > > > On Mon, May 1, 2017 at 7:54 PM, Justin Cameron > wrote: > >> Hi Vasu, >> >> Each

Re: Service discovery in the Cassandra cluster

2017-05-02 Thread Steve Robenalt
Hi Roman, I'm assuming you were intending your first statement to be in jest, but it's really not that hard to startup a Cassandra cluster. The defaults are pretty usable, so if all you want to do is set the IPs and start it up, the cluster probably will just take care of everything else. So I je

Re: Service discovery in the Cassandra cluster

2017-05-02 Thread daemeon reiydelle
My compliments to all of you for being adults, excessively kind, and definitely excessively nice. *...* *Daemeon C.M. ReiydelleUSA (+1) 415.501.0198London (+44) (0) 20 8144 9872* On Tue, May 2, 2017 at 5:08 PM, Steve Robenalt wrote: > Hi Roman, > > I'm assuming you were intending your f

Re: token distribution in multi-dc

2017-05-02 Thread Justin Cameron
That's correct - each DC will have a complete token ring. You can think of a Cassandra data center as effectively it's own self-contained "mini-cluster". See diagram below (diagram assumes RF3 in both DCs and a token range of only 0-99 for readability). [image: 2dc.png] On Wed, 3 May 2017 at 08:0

Re: token distribution in multi-dc

2017-05-02 Thread Sebastian Estevez
Hi Justin, > each DC will have a complete token ring This statement--and the diagram--imply that you can have multiple nodes with the same token as long as they are in seperate DCs. This isn't the case, though I understand how it is easy to fall into that trap. To help reason about this consider

Re: token distribution in multi-dc

2017-05-02 Thread Justin Cameron
Thanks for the correction Sebastian. I guess I didn't think that through too clearly myself before replying, as I know it's not possible to have two nodes in a cluster with the same token. On Wed, 3 May 2017 at 11:03 Sebastian Estevez < sebastian.este...@datastax.com> wrote: > Hi Justin, > > > e

Re: Service discovery in the Cassandra cluster

2017-05-02 Thread Roman Naumenko
Service discovery (aka "note some IPs") should be part of the cluster bootstrapping and management. See for example how elastic is doing this. Or consul. Its pretty standard practice these days. -- Roman On Tue, May 2, 2017 at 5:08 PM Steve Robenalt wrote: > Hi Roman, > > I'm assuming you were

Re: Service discovery in the Cassandra cluster

2017-05-02 Thread Jon Haddad
You’re free to supply your own Seed Provider. The Seed provider that comes with cassandra needs hard coded IPs, but there’s no reason why it has to be that way. There’s a handful of ideas here: https://issues.apache.org/jira/browse/CASSANDRA-12627