Re: New DC / token distribution not balanced

2023-03-17 Thread Bowen Song via user
Sorry to see you go. To unsubscribe from this mailing list, please send an email to user-unsubscr...@cassandra.apache.org On 17/03/2023 05:42, Mathieu Delsaut wrote: unsubscribe Mathieu Delsaut Studies Engineer @ DSIMB & ENERGY-Lab

Re: New DC / token distribution not balanced

2023-03-16 Thread Mathieu Delsaut
unsubscribe Mathieu Delsaut Studies Engineer @ DSIMB & ENERGY-Lab Interne : 2357 | Externe : +262 262 93 86 08 . Le jeu. 16 mars 2023 à 21:02, Bowen Song via user a écrit

Re: New DC / token distribution not balanced

2023-03-16 Thread Bowen Song via user
No, allocate_tokens_for_local_replication_factor does not exist in Cassandra 3. It was introduced in Cassandra 4.0. Now, may I interest you with an upgrade? Not only Cassandra 4 comes with a lots of improvements and bug fixes, it's also a fairly painless process. I find it much easier to

Re: New DC / token distribution not balanced

2023-03-16 Thread Max Campos
Does this exist for Cassandra 3.x? I know it was in DSE for DSE’s 3.x equivalent, and seems to be in Cassandra 4.x cassandra.yaml. I don’t see it here, though: https://github.com/apache/cassandra/blob/cassandra-3.11/conf/cassandra.yaml

Re: New DC / token distribution not balanced

2023-03-16 Thread Bowen Song via user
You may find "allocate_tokens_for_local_replication_factor" more useful than "allocate_tokens_for_keyspace" when you are spinning up a new DC. On 16/03/2023 06:25, Max Campos wrote: Update:  I figured out the problem! The “allocate_tokens_for_keyspace” value needs to be set for a keyspace

Re: New DC / token distribution not balanced

2023-03-16 Thread Max Campos
Update: I figured out the problem! The “allocate_tokens_for_keyspace” value needs to be set for a keyspace that has RF=3 for the DC being added. I just had the RF=3 set for the existing DC. I created a dummy keyspace with RF=3 for the new DC, set “allocate_tokens_for_keyspace=” and then

New DC / token distribution not balanced

2023-03-15 Thread Max Campos
Hi All - I’m having a lot of trouble adding a new DC and getting a balanced ring (i.e. every node has the same percentage of the token ring). My config: GossipingPropertyFileSnitch allocate_tokens_for_keyspace: num_tokens = 16 6 nodes in the new DC / 3 nodes in the existing DC Cassandra