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

Avoid slow insert batches blocking replication

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03, Repl 2023-04-17, Repl 2023-05-01, Repl 2023-05-15

      We now have a tunable max batch size for inserts (typically 500).  While an insert batch is being inserted, replication of any operations started after the batch is blocked because insert holds open an oplog hole.  Normally this is fine, but if the inserts are slow, this can cause overall replication lag; if we could prevent this or detect this (e.g. break up an insert batch when it gets long) we could avoid lag.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            45 Start watching this issue

              Created:
              Updated:
              Resolved: