Deprecated configuration attributes. Will be removed in Cassandra 3.0.
Cassandra stores storage configuration attributes in the system keyspace. You can set storage engine configuration attributes on a per-keyspace or per-table basis on the command line using the Cassandra-CLI utility. A keyspace must have a user-defined name, a replica placement strategy, and options that specify the number of copies per datacenter or node.
- Required. Determines how Cassandra distributes replicas for a keyspace among nodes in
the ring. Values are:
- SimpleStrategy or org.apache.cassandra.locator.SimpleStrategy
- NetworkTopologyStrategy or org.apache.cassandra.locator.NetworkTopologyStrategy
- Specifies configuration options for the chosen replication strategy class. The
replication factor option is the total number of replicas across the cluster. A
replication factor of 1 means that there is only one copy of each row on one node. A
replication factor of 2 means there are two copies of each row, where each copy is on a
different node. All replicas are equally important; there is no primary or master
replica. As a general rule, the replication factor should not exceed the number of nodes
in the cluster. However, you can increase the replication factor and then add the
desired number of nodes.
When the replication factor exceeds the number of nodes, writes are rejected, but reads are served as long as the desired consistency level can be met.
For more information about configuring the replication placement strategy for a cluster and datacenters, see Choosing keyspace replication options.