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

How can I guarantee near values ranges of chunks to be in the same shard?

    • Type: Icon: Question Question
    • Resolution: Community Answered
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.13
    • Component/s: Sharding
    • Labels:
      None
    • Sharding 2019-11-04, Sharding 2019-11-18

      Given the [example |https://docs.mongodb.com/manual/tutorial/view-sharded-cluster-configuration/]of range partitioning from the official site of MongoDB documentation, we see that the sharding key is based on the zip field. However, having a look at the cluster details, we notice that shard0001 contains two chunks of ranges [1,56000) and [57500,58140). Wouldn't we expect from the intermediate ranges [56000,56800),[56800,57088) and [57088,57500) to be stored also on the shard0001?

      When hearing about range partitioning, I am expecting that every shard should contain continuous shard keys.  Is it possible to achieve that without defining zones?

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            nickkoutr Nikolaos Koutroumanis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: