Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16581

Investigate changes in SERVER-84440: Expose the number of replication waiters in serverStatus

      Original Downstream Change Summary

      This adds two metrics to the serverStatus.metrics section:

      repl.waiters.replication
      
      repl.waiters.opTime
      

      repl.waiters.replication exposes how many threads are waiting for a replicated and/or journaled write concern to resolve. repl.waiters.opTime exposes how many threads are waiting for a local optime only.

      Description of Linked Ticket

      The replication waiters list can grow with the number of operations waiting for write concern. Advancing replication timestamps also requires updating all waiters in this list under a mutex. If the list is long, this can take a long time.

      It would be useful to be able to see how many operations are waiting for replication in this state, which would make it easier to diagnose problems in this area.

            Assignee:
            matt.maville@mongodb.com Matthew Maville
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 weeks, 3 days ago