Thank you, Is there a specific reason why Cassandra4.0 recommends to use 16 tokens?
On Tue, Apr 27, 2021 at 11:11 PM Jeff Jirsa <jji...@gmail.com> wrote: > > > On Apr 27, 2021, at 10:47 PM, Jai Bheemsen Rao Dhanwada < > jaibheem...@gmail.com> wrote: > > > Hello, > > I am currently using num_tokens: 256 in my cluster with the version 3.11.6 > and when I looked at the Cassandra4.0 I see the num_tokens set to 16. > > Is there a specific reason for changing the default value from 256 to 16? > What is the best value to use ? > > > Probably something like 16 on new clusters. If you have an existing > cluster, it’s likely not worth the hassle to change it unless it’s actively > causing you pain > > If 16 is recommended, is there a way to change the num_tokens to 16 from > 256 on the live production cluster? > > > Not easily, no. You have to add a new data center or similar. Lots of > effort. > > > > I tried to directly update and restart Cassandra but the process won't > startup with the below error > > org.apache.cassandra.exceptions.ConfigurationException: Cannot change the >> number of tokens from 256 to 16 > > > Any suggestions? > > > Change the yaml back to 256 so it starts > > >