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

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

      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.

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            jlpedrosa Jose Luis Pedrosa
            0 Vote for this issue
            9 Start watching this issue