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

Investigate changes in SERVER-46396: Add metrics to track number of operations blocked behind a catalog cache refresh

      Description

      Downstream Change Summary

      Added new metric under shardingStatistics.catalogCache that will only be incremented on mongos:

      https://docs.mongodb.com/manual/reference/command/serverStatus/#shardingstatistics

      It will be the field OperationsBlockedByRefresh, which will be a container with six counts:

      OperationsBlockedByRefresh.countAllOperations
      OperationsBlockedByRefresh.countInserts
      OperationsBlockedByRefresh.countQueries
      OperationsBlockedByRefresh.countUpdates
      OperationsBlockedByRefresh.countDeletes
      OperationsBlockedByRefresh.countCommands

      This metric will track any operations that flow through the mongos/router and had to block on a catalog cache refresh during the operation.

      This metric will be backported back to 4.2.

      Top-level view:

      "shardingStatistics" : {
         "catalogCache" : {
            "numDatabaseEntries" : NumberLong(<num>),
            "numCollectionEntries" : NumberLong(<num>),
            "countStaleConfigErrors" : NumberLong(<num>),
            "totalRefreshWaitTimeMicros" : NumberLong(<num>),
            "numActiveIncrementalRefreshes" : NumberLong(<num>),
            "countIncrementalRefreshesStarted" : NumberLong(<num>),
            "numActiveFullRefreshes" : NumberLong(<num>),
            "countFullRefreshesStarted" : NumberLong(<num>),
            "countFailedRefreshes" : NumberLong(<num>),
            "operationsBlockedByRefresh" : {
            	"countAllOperations" : NumberLong(<num>),
            	"countInserts" : NumberLong(<num>),
            	"countQueries" : NumberLong(<num>),
            	"countUpdates" : NumberLong(<num>),
            	"countDeletes" : NumberLong(<num>),
            	"countCommands : NumberLong(<num>),
            }
         }
      },
      

      Description of Linked Ticket

      Text from scope document:

      "Count and percentage of number of queries that are no longer blocked, but would have been blocked on a refresh"

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 47 weeks, 3 days ago