Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4246

allow resharding by more-specific shard key.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding

      While sharding by a different shard key in general could require arbitrary amounts of data movement, sharding by a more-specific shard key doesn't have this problem. For example, a collection might initially be sharded by "region", then suddenly one region is huge, and the data must be resharded to split the regional chunks. Even though no data needs to be moved between shards, this isn't allowed.

      If we were nicer, we could allow this by creating indices on each shard for the new shard key, then modifying the config db and appending criteria to the chunk bounds.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            greg_10gen Greg Studer
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: