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

XMLWordPrintableJSON

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

      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
            Reporter:
            Nikolaos Koutroumanis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: