Allow collection creation on the least loaded shard rather than the dbPrimary

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If a data shard is not specified for a collection creation, the default is currently to choose the dbPrimary (sharded, unsharded). However, now that the balancer is moving unsharded collections and those collections can live outside the dbprimary, we can instead choose the least loaded shard by querying the balancer and use that as the data shard.

      We should still always choose the dbPrimary if unsharded collection balancing is disabled.

            Assignee:
            [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: