Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-1066

DatacenterShardStrategy needs enforceable and keyspace based RF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • 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

        1. 1066.txt
          101 kB
          Jeremy Hanna
        2. 1066.txt
          156 kB
          Jeremy Hanna
        3. 1066-3.txt
          99 kB
          Jeremy Hanna
        4. 1066-4.txt
          102 kB
          Jeremy Hanna
        5. 1066-5.txt
          105 kB
          Jeremy Hanna
        6. 1066-changes-patch.txt
          33 kB
          Jeremy Hanna
        7. 1066-external.patch
          113 kB
          Jeremy Hanna
        8. 1066-update.txt
          4 kB
          Jeremy Hanna

        Issue Links

          Activity

            People

              jeromatron Jeremy Hanna
              jeromatron Jeremy Hanna
              Jeremy Hanna
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: