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

Document new ServerStatus section behavior

    XMLWordPrintableJSON

Details

    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

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 48 weeks, 6 days ago