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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.10
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 17 (07/15/16)

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: