Let's say I have multiple deployment environments which have Cassandra cluster of various size:
- local test: 1 node
- dev: 3 nodes
- production: 5 nodes
The same DDL script is used to initialize the schema on these environments. Except for the keyspace `replication_factor` parameter: Example:
// Dev cluster 3 nodes CREATE KEYSPACE tinydemo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3 };
Can you please suggest an elegant solution to manage a single DDL script while still being able to deploy on various environments with a parameterizable `replication_factor`?