Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



tarikh avatar image
tarikh asked Erick Ramirez commented

Is it recommended to set RF equal to the number of nodes in each DC for system keyspaces?

for a cluster with two DCs, each has 10 nodes, it is a good idea to set RF to 10 per DC for system schemas?

consideration is to have high availability to connect to it.

will it cause overhead?

ALTER KEYSPACE system_auth WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'DC1': '10', 'DC2': 10'};

ALTER KEYSPACE system_distributed WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'DC1': '10', 'DC2': 10'};

ALTER KEYSPACE system_traces WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'DC1': '10', 'DC2': 10'};

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

The quick answer is no. As a general rule, we recommend 3 replicas in each DC and this rule applies in almost all cases.

I've answered a similar question before about system keyspaces in #5024. For the system_auth keyspace, we recommend configuring it with NetworkTopologyStrategy with 3 replicas in each DC. I've worked with hundreds of clusters for hundreds of companies and this is how they have it configured in almost all cases with only a handful of clusters configured with 5 replicas.

The system_distributed keyspace is used to store repair history if you're running with open source Apache Cassandra so there's no real benefit in changing this unless you intend to run reports against previous repair runs.

The system_traces keyspace holds trace data if you have enabled query tracing. By default trace data expires after 24 hours so its replication settings isn't so critical. Unless you are constantly tracing queries, there's also no point in changing the replication settings for this keyspace. Cheers!

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

thanks you!

0 Likes 0 ·

Not a problem. Cheers!

0 Likes 0 ·