How to get the replication factor of C* cluster?

Reshef picture Reshef · Jan 18, 2016 · Viewed 22k times · Source

I cant find it in cassandra.yaml, maybe nodetool can get me the configured replication factor of my cluster?

What is the default value of the replication factor?

Answer

Will picture Will · Jan 18, 2016

A cluster doesn't have a replication factor, however your keyspaces does.

If you want to look at the replication factor of a given keyspace, simply execute SELECT * FROM system_schema.keyspaces; and it will print all replication information you need.