Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1694

Shard and then Reshard a Collection via Shell Helper

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.15
    • Affects Version/s: None
    • Component/s: sh
    • Developer Tools
    • 2
    • Not Needed

      Summary:
      Enable a customer to shard a collection and then immediately after the completion of the sharding of the collection reshard the collection to the same shard key via a shell helper.

      Motivation:
      One of the chief complaints is that data distribution in a sharded cluster is too slow. The improved version of resharding released in MongoDB 7.2 is at least an order of magnitude faster than the default data distribution method of range migration and the original version of resharding (5.0 - 7.1).

      With the version of resharding available in MongoDB 7.2 customers can reshard to the same shard key with the forceRedistribution option enabling them to use resharding as the primary means to conduct large data movement such as after adding or removing a shard in the cluster.

      A shell helper executing the shard then reshard sequence provides a convenient one stop command for customers to leverage resharding to initially distribute their collection and have a better experience.

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: