Re: Generating evenly distributed tokens for vnodes

2020-05-29 Thread Jon Haddad
I'm on mobile now so I might be mistaken, but I don't think nodetool move works with multiple tokens On Fri, May 29, 2020, 1:48 PM Kornel Pal wrote: > Hi Anthony, > > Thank you very much for looking into using the script for initial token > generation and for providing multiple detailed methods

Re: Generating evenly distributed tokens for vnodes

2020-05-29 Thread Kornel Pal
Hi Anthony, Thank you very much for looking into using the script for initial token generation and for providing multiple detailed methods of expanding the cluster. This helps a lot, indeed. Regards, Kornel Anthony Grasso wrote: Hi Kornel, Great use of the script for generating initial to

Re: Generating evenly distributed tokens for vnodes

2020-05-28 Thread Anthony Grasso
Hi Kornel, Great use of the script for generating initial tokens! I agree that you can achieve an optimal token distribution in a cluster using such a method. One thing to think about is the process for expanding the size of the cluster in this case. For example consider the scenario where you wa

Re: Generating evenly distributed tokens for vnodes

2020-05-27 Thread Kornel Pal
As I understand, the previous discussion is about using allocate_tokens_for_keyspace for allocating tokens for most of the nodes. On the other hand, I am proposing to generate all the tokens for all the nodes using a Python script. This seems to result in perfectly even token ownership distrib

Re: Generating evenly distributed tokens for vnodes

2020-05-27 Thread Elliott Sims
There's also a slightly older mailing list discussion on this subject that goes into detail on this sort of strategy: https://www.mail-archive.com/user@cassandra.apache.org/msg60006.html I've been approximately following it, repeating steps 3-6 for the first host in each "rack(replica, since I hav

Generating evenly distributed tokens for vnodes

2020-05-27 Thread Kornel Pal
Hi, Generating ideal tokens for single-token datacenters is well understood and documented, but there is much less information available on generating tokens with even ownership distribution when using vnodes. The best description I could find on token generation for vnodes is https://thelast