Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.2.0 beta 1
    • Component/s: None
    • Labels:

      Description

      If, when starting up for the first time, the host only has 1 token but num_tokens is configured differently, then this will trigger a migration process:

      • The host will assign itself num_tokens tokens in its own range
      • The new tokens will be gossiped

      This will allow a rolling migration where N new hosts are bootstrapped into the cluster (with num_tokens set appropriately) and then the N old nodes are decommissioned. This will result in even distribution of the data among the new nodes with randomly assigned tokens.

      Edit0: Appended patch information.

      Patches

      Compare Raw diff Description
      01_migration_path 01_migration_path.patch Migrate from one token to many

      Note: These are branches managed with TopGit. If you are applying the patch output manually, you will either need to filter the TopGit metadata files (i.e. wget -O - <url> | filterdiff -x*.topdeps -x*.topmsg | patch -p1), or remove them afterward (rm .topmsg .topdeps).

        Attachments

          Activity

            People

            • Assignee:
              soverton Sam Overton
              Reporter:
              soverton Sam Overton
              Authors:
              Sam Overton
              Reviewers:
              Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: