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

Docs for SERVER-37001: Add 'idleCursors' flag to $currentOp and report stats we already have

      Description

      Description:

      https://docs.google.com/document/d/1sQUw5WU5-6i3-Ac986YGkwn7q7vEqSee39vvP2Mf1bA/edit#heading=h.sye21yee6q34

      The only part of the scope that this ticket implemented was adding the idle cursors flag to the existing $currentop aggregation metadata source. It causes the behavior to include one document per idle cursor.

      Engineering Ticket Description:

      In this ticket, we will make the flag gather a list of idle cursors, determined solely by whether or not they are pinned.

      This is similar to what is done in the Proof of Concept except it will also add fields to GenericCursor which are already present on both ClientCursor and ClusterClientCursor

      It also should not bother to include any cursor object in the 'inprog' ops for any getmore ops. This will happen later. This was attempted in the POC but we decided to do it a different way, namely by tracking a GenericCursor on the CurOp object during the getMore command.

      This covers both mongos and mongod. Any fields that exist exclusively on mongod or exclusively on mongos should be excluded in this ticket.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 26 weeks, 2 days ago