[SERVER-16767] Add cursor metrics to serverStatus in mongos Created: 07/Jan/15  Updated: 27/Oct/15  Resolved: 12/Jan/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.8.0-rc4
Fix Version/s: 2.8.0-rc5

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-16398 Remove support for "cursorInfo" command Closed
Documented
is documented by DOCS-4651 Document that .serverStatus() on mong... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

MongoD supports the cursorInfo command, and the serverStatus command for getting cursor stats.

MongoS only supports the cursorInfo command. We need to add support for cursor stats in serverStatus.



 Comments   
Comment by Mark Benvenuto [ 12/Jan/15 ]

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

Comment by Githook User [ 12/Jan/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-16767: Add cursorInfo in mongos metrics
Branch: master
https://github.com/mongodb/mongo/commit/11276bf2f804f35fcd2ecf8eee029aef2df26147

Generated at Thu Feb 08 03:42:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.