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

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

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

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