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

Remove shard slows down when there are multiple sharded collections and jumbo chunks

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 2

      Context

      When the balancer is selecting the chunks to move, it goes through all the collections randomly.

      To prioritize the migrations from the draining shards, for every collection, we first check if the collection has chunks on a draining shard.

      What is wrong

      If a draining shard exists and that collection has chunks that can't be migrated from the draining shard (like jumbo chunks), that shard will be removed from the list of available shards to participate inĀ  a migration during the current balancing round, which is not correct. That removal means that, during the current balancing round, the next collections won't have any chance to move their chunks from that shard.

      Therefore, the draining of a shard has been slowed down due to the addition of this line.

            Assignee:
            Unassigned Unassigned
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: