[DOCS-943] Document new ServerStatus section behavior Created: 03/Jan/13  Updated: 14/Mar/13  Resolved: 14/Mar/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: mongodb-2.4

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: metrics, serverstatus
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by DOCS-1066 Document replication section in serve... Closed
is duplicated by DOCS-1087 Document idhack, fastmod and scanAndO... Closed
Related
is related to DOCS-1019 More detailed documentation on Shardi... Closed
Participants:
Days since reply: 10 years, 48 weeks, 6 days ago

 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.



 Comments   
Comment by auto [ 14/Mar/13 ]

Author:

{u'date': u'2013-03-06T00:24:21Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-943 dynamic serverStatus generation

Conflicts:
source/release-notes/2.4.txt
Branch: master
https://github.com/mongodb/docs/commit/aff2ac3d9f5ca3ee8e84585baa7e473421963651

Comment by auto [ 08/Mar/13 ]

Author:

{u'date': u'2013-03-08T03:23:53Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-943 minor corrections
Branch: master
https://github.com/mongodb/docs/commit/0c95b9519c358adf160bd9eb760be0801da480d3

Comment by auto [ 08/Mar/13 ]

Author:

{u'date': u'2013-03-05T00:34:59Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-943 new serverStatus metrics and data
Branch: master
https://github.com/mongodb/docs/commit/621ebc1fe492f8c7ee5b83268316f9e7de020290

Generated at Thu Feb 08 07:39:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.