Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41498

Create ReplicationMetrics class

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.11, 4.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.2, v4.0
    • Repl 2019-06-17, Repl 2019-07-01

      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.

            Assignee:
            medha.potluri@mongodb.com Medha Potluri (Inactive)
            Reporter:
            steven.vannelli@mongodb.com Steven Vannelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: