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

Investigate changes in SERVER-53639: Add MongoS server status metrics to track how often a cursor has more than 1 batch

      Description

      Downstream Change Summary

      Added two server status metrics for MongoS - "mongos.cursor.totalOpened" and "mongos.cursor.moreThanOneBatch". The former documents the total number of cursors that have been opened from the time the MongoS was launched until the time the stat was requested.
      The second stat counts the number of MongoS cursors that have performed a getMore. (This is between the shell and the MongoS.)

      Description of Linked Ticket

      MongoS starts off by issuing a query of batch size 0. Thus, cursors by MongoS will always call a getMore, and therefore, the server status metric which tracks how many cursors return more than one batch will have an artificially inflated value.

      The solution - we will be counting the number of cursors that call getMore on MongoS. Thus we will know when to ignore the artificially inflated value.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

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

            Assignee:
            jason.price@mongodb.com Jason Price
            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:
              3 years, 5 weeks, 2 days ago