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

allow resharding by more-specific shard key.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Sharding
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                10 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: