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

chooseRandomMigration can starve draining shards of available desitnation shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0

      Balancer iterates over the list of collections, then picks up candidate chunks to migrage. Everytime a shard is chosen, it gets removed from the list of eligible chunks for this round. So, if the collection that has a chunk that needs to be drained off a shard ends up being iterated last from the list of collections every time, it will never get a chance to get drained, especially in a cluster with small number of shards.

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

              Created:
              Updated:
              Resolved: