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

Improve throttling on migration batches issued by the Balancer

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • Fully Compatible
    • Sharding EMEA 2022-06-13
    • 6

    Description

      Nowadays, the balancer interleaves consecutive batches of migrations issued by its main thread with a fixed delay of one second to avoid starving CRUD operations with continuous cache invalidations on shards/routers.

      While this solution works, it may introduce excessive or unnecessary delays (as the time spent computing the batch of migrations within each round may be already enough for avoiding the problem).

      A more efficient alternative would consist in measuring the time between consecutive balancer rounds and applying a variable throttling only when required (similarly to what has been already implemented in the secondary thread of the balancer).

      Attachments

        Activity

          People

            allison.easton@mongodb.com Allison Easton
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: