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

Document new ServerStatus section behavior

    XMLWordPrintable

    Details

    • # Replies:
      3
    • Last comment by Customer:
      true

      Description

      The new serverstatus system allows for hidden sections to be exposed, dynamically like so:

      > db.runCommand({serverStatus:true, workingSet:1}).workingSet {
      	"note" : "thisIsAnEstimate",
      	"pagesInMemory" : 29,
      	"computationTimeMicros" : 3738 }

      Grep code for ServerStatusSection for all named sections.

      You will want to cover the new metrics as well:

      db.runCommand({serverStatus:true}).metrics
      {
      	"document" : {
      		"deleted" : NumberLong(0),
      		"inserted" : NumberLong(1),
      		"returned" : NumberLong(286),
      		"scanned" : NumberLong(625),
      		"updated" : NumberLong(0)
      	},
      	"operation" : {
      		"fastmod" : NumberLong(0), //in-place mod
      		"idhack" : NumberLong(0), // _id in query, and uses _id index
      		"scanAndOrder" : NumberLong(0) // in memory sorts
      	},
      	"record" : {
      		"moves" : NumberLong(0) // when documents move
      	},
      	"ttl" : {
      		"deletedDocuments" : NumberLong(0),
      		"passes" : NumberLong(0)
      	}
      }

      Good to see if anything else has changed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sam.kleinman Sam Kleinman (Inactive)
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Last commenter:
              Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 29 weeks, 1 day ago
                Date of 1st Reply: