Choosing keyspace replication options

Options to set replication strategy.

To set the replication strategy for a keyspace, see CREATE KEYSPACE.

When you use NetworkToplogyStrategy, during creation of the keyspace, you use the datacenter names defined for the snitch used by the cluster. To place replicas in the correct location, Cassandra requires a keyspace definition that uses the snitch-configured datacenter names. For example, if the cluster uses the PropertyFileSnitch, create the keyspace using the user-defined datacenter and rack names in the file. If the cluster uses the Ec2Snitch, create the keyspace using EC2 datacenter and rack names. If the cluster uses the GoogleCloudSnitch, create the keyspace using GoogleCloud datacenter and rack names.