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

Consider making the balancer threshold to always be 1

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding 2018-08-27

      This is the threshold in question

      Additionally, when the balancer threshold is set to 1, there is no longer a need for the aggressiveBalancerHint.

      Background:
      Because of the way how thresholds are computed, it is possible that the balancer won't take action after a single new shard is added to the cluster. Lowering the threshold can help in this scenario. We should also remove the part where we take the ceiling of the threshold and keep the fractional component when comparing thresholds in order to not be overly aggressive.

            Assignee:
            sarah.zhou@mongodb.com Sarah Zhou
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: