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

Add support to create/define chunks in a given shard for empty collections

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • Sharding

    Description

      Hi All

      When pre-spliting a large collection that requires a significant number of chunks, the procedure of splitting and then moving chunks to the desired shard can take a significant amount of time. In some cases can be done by making an small initial split and move, and then split with a seed in each chunk, this is not always possible.

      As config.chunks collection is not part of the "API", it would be nice to have a way to instruct the DB to create the chunks in a determined shard.

      Possible options:
      1) pass an array of { min :

      { key : value}

      , max :

      { key : value }

      , shard : name } on the shardCollection command, this only solves the initial creation.

      2) Allow specify the destination shard of a chunk in a split if the left or right side are empty.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding Backlog - Sharding Team
              jlpedrosa Jose Luis Pedrosa
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: