Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
(Updated to reflect the true scope of this improvement along with decisions about implementation)
Currently, the DatacenterShardStrategy reads in a properties file - datacenters.properties - to get a per-datacenter replication factor.
This improvement would do away with a separate properties file for configuring per-datacenter replication in favor of configuring them on a per-keyspace basis. This would allow clients to create a new keyspace with the configuration of the DatacenterShardStrategy as part of the keyspace definition. It would also update the cassandra.yaml configuration parsing to allow users to configure their DSS from there as well.
The basic structure would not change and the KSMetaData would just contain additional configuration information - a map of configuration options. That way, if other ReplicationStrategies in the future would like specific configuration options, they can use them as well.
Further changes previously mentioned in this ticket involved enforcing the replication factor. A separate ticket has been created to push the replication factor down to the replication strategy. That facilitates enforcing the RF at that level.
Attachments
Attachments
Issue Links
- is depended upon by
-
CASSANDRA-1263 Push replication factor down to the replication strategy
- Resolved
- relates to
-
CASSANDRA-1344 Update CLI add keyspace usage to take into account replication strategy options
- Resolved