[SERVER-14954] connPoolStats for replicaSets should include more detail Created: 19/Aug/14  Updated: 17/Sep/14  Resolved: 17/Sep/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

The Admin command connPoolStats lists information about replicaSets. It would be useful if this included:

  • slaveDelay
  • priority

Current sample output for connPoolStats, replicaSets

	"test-rs0" : {
		"hosts" : [
			{
				"addr" : "Jonathans-MacBook-Pro.local:31100",
				"ok" : true,
				"ismaster" : true,
				"hidden" : false,
				"secondary" : false,
				"pingTimeMillis" : 0
			},
			{
				"addr" : "Jonathans-MacBook-Pro.local:31101",
				"ok" : true,
				"ismaster" : false,
				"hidden" : false,
				"secondary" : true,
				"pingTimeMillis" : 0,
				"tags" : {
					"dc" : "backup"
				}
			},



 Comments   
Comment by Scott Hernandez (Inactive) [ 19/Aug/14 ]

No, you cannot do this via mongos, but there are some feature requests which might do what you are imagining like SERVER-11648.

What are you trying to accomplish? Maybe you can talk to someone more knowledgeable about that and come up with a new feature request if what exists is not sufficient.

Comment by Jonathan Abrahams [ 19/Aug/14 ]

Is there a mechanism from mongos to view the current configuration of the replica sets without querying the primary node directly?

Comment by Scott Hernandez (Inactive) [ 19/Aug/14 ]

This information is not needed nor collected by mongos for these connections. Why do you want this command to return that information?

The priority/delay are replica set configuration options not (current) state/role information used in selecting connection used to talk to shards.

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