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

Improve throttling on migration batches issued by the Balancer

    • Fully Compatible
    • v6.0
    • Sharding EMEA 2022-06-13
    • 6

      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).

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

              Created:
              Updated:
              Resolved: