SimpleStrategy

The SimpleStrategy is a basic replication strategy. It's used when using a single datacenter. This method is rack unaware. It places replicas on subsequent nodes in a clockwise order.

Here is a sample CQL command to create a keyspace with SimpleStrategy and a replication factor of 3, which can be fired from the cqlsh prompt:

cqlsh>  CREATE KEYSPACE cassandrademodb WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };

Get Apache Cassandra Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.