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

Make BalancerPolicy::balance return more than one migration per collection (if appropriate)

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 17 (07/15/16)

      Currently, the BalancerPolicy::balance call, which is used by the sharding balancer returns a single migration per collection. In order to better utilize the ability to move multiple chunks in parallel across the cluster, this call should be made to return more than one migration per collection if this is appropriate.

      For example:

      Starting state of S1 (50 chunks), S2 (50 chunks), S3 (0 chunks), S4 (0 chunks) should result in two migrations:
      S1 -> S3 and S2 -> S4
      

      Care should be taken that the balancer does not move chunks over-zealously and cause unnecessary churn in the cluster.

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

              Created:
              Updated:
              Resolved: