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

Allow multiple 'draining' shards

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.11, 3.4.0
    • Component/s: Sharding
    • None
    • Sharding

      The removeShard command contains an explicit check that there aren't any other shards that are currently draining and if so, fails the command. This check precludes the scenario of quickly shrinking a cluster, which might have been exponentially grown during peak time.

      The check is unnecessary, given that we already test that the balancer supports this scenario and should be removed.

      NOTE: Fixing it in the 3.4 release will take advantage of the support for parallel migrations so multiple shards can drain in parallel. In versions 3.2 and older, the balancer only moves a single chunk at a time so having multiple "draining" shards only prevents chunks from jumping from one "doomed" shard to the next.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: