[SERVER-41498] Create ReplicationMetrics class Created: 04/Jun/19  Updated: 29/Oct/23  Resolved: 21/Jun/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.11, 4.2.1, 4.3.1

Type: Task Priority: Major - P3
Reporter: Steven Vannelli Assignee: Medha Potluri (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-06-17, Repl 2019-07-01
Participants:

 Description   

IDL types do not have anything to manage the concurrency around reading and writing to their fields, so we will need a class that wraps ElectionMetrics, ElectionCandidateMetrics, and ElectionParticipantMetrics. For now this class should be a skeleton until we need to create functions to write to the underlying IDL types. To start with, it should have a member for each of the following IDL types: ElectionMetrics, ElectionCandidateMetrics, and ElectionParticipantMetrics and a mutex that will manage the concurrency around the variables in the class.

We will model our class similar to TrafficRecorder. The ReplicationMetrics class should be a decoration on the serviceContext. It should also include an inner class that inherits from ServerStatusSection, so that we can easily generate a section in serverStatus Metrics for the metrics stored in ElectionMetrics.



 Comments   
Comment by Githook User [ 19/Aug/19 ]

Author:

{'name': 'Medha Potluri', 'email': 'medha.potluri@mongodb.com'}

Message: SERVER-41498 Create ReplicationMetrics class

(cherry picked from commit eab3425cdea51ce0e990e168f772f6999ce5c919)
Branch: v4.2
https://github.com/mongodb/mongo/commit/0293869fcd8eed2577325f78582e6fb16714b409

Comment by Githook User [ 03/Jul/19 ]

Author:

{'name': 'Medha Potluri', 'email': 'medha.potluri@mongodb.com'}

Message: SERVER-41498 Create ReplicationMetrics class

(cherry picked from commit eab3425cdea51ce0e990e168f772f6999ce5c919)
Branch: v4.0
https://github.com/mongodb/mongo/commit/8b16bc170d844507c01d331c12fb1451130cbeee

Comment by Githook User [ 21/Jun/19 ]

Author:

{'name': 'Medha Potluri', 'email': 'medha.potluri@mongodb.com'}

Message: SERVER-41498 Create ReplicationMetrics class
Branch: master
https://github.com/mongodb/mongo/commit/eab3425cdea51ce0e990e168f772f6999ce5c919

Generated at Thu Feb 08 04:57:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.