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

Add tag based sharding commands

    • Sharding
    • Fully Compatible

      Create commands to replace current shell development prototypes:

      { tagShard : <shard-name>, tag: [tags]/<tag> }
      { untagShard : <shard-name>, tag: [tags]/<tag> }}
      { tagChunks : <ns>, range: { min/max : {<shard-key value>} }, tag: <tag>}
      

      The tagChunk commands should validate that the namespace is valid, that the tag exists on some shard, that the min/max value is of the correct format and defines a value in the shard-key (if a prefix is used then $Min/MaxKey can be added for the missing fields), and that there are not overlapping ranges; if any of these validations fail then the commands should return an error.

      These commands are critical to support other clients than the shell, like all drivers, and is necessary for centralizing logic and behavior at the mongos codebase.

      The commands should also make sure that chunk boundaries line up with the new tags ranges.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: