[SERVER-65796] convert serverStatus metrics for index builds from gauges to counters. Created: 19/Apr/22  Updated: 29/Oct/23  Resolved: 21/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Yujin Kang Park
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by TOOLS-3144 Investigate changes in SERVER-65796: ... Closed
Documented
is documented by DOCS-15431 Investigate changes in SERVER-65796: ... Closed
Related
is related to SERVER-64659 Report in serverStatus number of file... Closed
is related to SERVER-57625 Add serverStatus metrics for index bu... Closed
Backwards Compatibility: Minor Change
Sprint: Execution Team 2022-06-27
Participants:

 Description   

We added a new section "activeIndexBuilds" in SERVER-57625 to capture metrics for index builds. The metrics are currently implemented as gauges, which go down to zero when there are no longer any in-progress index builds. If these metrics were converted to counters that never decrement, it may work better with some of our diagnostic tools such as FTDC and support better trend analysis.

Separately, if we decide to move forward on this change, we should consider renaming this section since "activeIndexBuilds" will not be accurate anymore. This new section would also be a suitable location for new metrics requested in SERVER-64659.

This section is new to 6.0 and has not been back ported to earlier versions of the server.



 Comments   
Comment by Githook User [ 21/Jun/22 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-65796: convert activeIndexBuilds gauge metrics to indexBuilds counter metrics
Branch: master
https://github.com/mongodb/mongo/commit/700a1254e2fbd1f5df74d010d214503f24dbbf3a

Comment by Benety Goh [ 19/Apr/22 ]

This is the current db.serverStatus() format:

	"activeIndexBuilds" : {
		"total" : 0,
		"phases" : {
			"scanCollection" : 0,
			"drainSideWritesTable" : 0,
			"drainSideWritesTablePreCommit" : 0,
			"waitForCommitQuorum" : 0,
			"drainSideWritesTableOnCommit" : 0,
			"processConstraintsViolatonTableOnCommit" : 0,
			"commit" : 0
		}
	},

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