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

Simplify Token Selection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • Local/Config

    Description

      When creating provisioning scripts, especially when running tools like Chef, each node is launched individually. When not using vnodes your initial setup will always be unbalanced unless you handle token assignment within your scripts.

      I spoke to someone recently who was using this in production and his operations team wasn't too pleased that they had to use OpsCenter as an extra step for rebalancing. Instead, we should provide this functionality out of the box for new clusters.

      Instead, could we have the following options below the initial_token section?

      # datacenter_index: 0
      # node_index: 0
      # datacenter_size: 1
      

      The above configuration options, when uncommented, would do the math of:

      token = node_index * (range / datacenter_size) + (datacenter_index * 1000000) + start_of_range
      

      This means that users don't have to repeatedly implement the initial_token selection code nor know the range and offsets of their partitioner.

      Attachments

        Issue Links

          Activity

            People

              jjordan Jeremiah Jordan
              j.casares Joaquin Casares
              Jeremiah Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: