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

Comment on: "manual/tutorial/split-chunks-in-sharded-cluster.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • 0.25

    Description

      This statement is extremely hopeful as I contemplate converting a big replica set into a sharded DB:

      "When you shard a collection that has existing data, MongoDB automatically creates chunks to evenly distribute the collection"

      However, it doesn't give me any idea how it does this. So I'm not sure how confident I should be with its technique.

      The only things I've found that seem relevant to my challenge suggest somewhat involved approaches to pre-splitting data (http://stackoverflow.com/questions/19672302/how-to-programatically-pre-split-a-guid-based-shard-key-with-mongodb). If the above statement is telling me what I hope it is then my strategy would be to create a new sharded cluster in which my original replica set is one shard. Then I would drain that shard. But that goes against what this page says:

      http://docs.mongodb.org/manual/tutorial/remove-shards-from-cluster/

      "This procedure describes how to safely remove a single shard. Do not use this procedure to migrate an entire cluster to new hardware."

      Now, I think I understand the intent there. But there's room for different interpretations.

      This is close:

      http://docs.mongodb.org/manual/tutorial/convert-replica-set-to-replicated-shard-cluster/

      But again, it isn't a complete statement.

      Attachments

        Activity

          People

            ravind.kumar Ravind Kumar (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 36 weeks, 2 days ago