Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3296

tag aware sharding: document use case of limiting a collection to one or several shards

    XMLWordPrintableJSON

Details

    Description

      I've got examples written up here:

      http://askasya.com/post/taggedcollectionbalancing

      It can be used to limit sharded collection to shards with specific tag.
      It can be used to limit a "sharded" collection to a single shard.

      It can even be a work-around to not having a moveCollection command (tag it to the shard you want to move it to, shard it, let the balancer do the work).

      We should also remove the note about it not being supported for hashed index - it works and should be supported for hashed index as long as the range being tagged is MinKey to MaxKey (to limit the use of tags on ranges for hashed since it's meaningless to specific any other sub-range of hashed key).

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago