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

Document that .serverStatus() on mongoS's now reports cursor statistics

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.17, mongodb-3.0
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      As described in the summary. From Mark in linked:

      Docs:
      db.serverStatus() for mongos now includes metrics for cursors. The goal is to remove the deprecated cursorInfo command in the release after 2.8.

      Example:

      mongos> db.serverStatus()
      {
      	"metrics" : {
      		"cursor" : {
      			"open" : {
      				"multiTarget" : NumberLong(0),
      				"singleTarget" : NumberLong(0),
      				"total" : NumberLong(0)
      			}
      		},
      	},
      	"ok" : 1
      }
      

      multiTarget - this is for multi-shard cursors.
      singleTarget - this is for single shard cursors.
      total - sum of singleTarget, and multiTarget

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            michael.paik Michael Paik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 16 weeks, 2 days ago